From 2d8bf363dfdb38c1c404945864fc51c5a0e6e036 Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Sun, 10 Nov 2024 21:36:10 +0100 Subject: [PATCH] Switch to default implementation. --- .github/workflows/docker-publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index de9ead3..5794a74 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,8 +6,15 @@ name: Docker Build # documentation. on: + workflow_dispatch: push: - branches: [ master ] + branches: + - 'master' + tags: + - 'v*' + pull_request: + branches: + - 'master' env: # Use docker.io for Docker Hub if empty @@ -47,17 +54,16 @@ jobs: # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action - - name: Extract Docker metadata + - name: Docker meta id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: type=raw,value=${{ steps.tag_version.outputs.new_tag }},enable=true,priority=900 # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: . file: LDTTeam.Authentication.Server/Dockerfile