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