Update docker-publish.yml

This commit is contained in:
John Edwards 2023-10-05 21:01:53 +01:00 committed by GitHub
parent d26e4e8ede
commit 3c483ec15f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,9 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
@ -62,7 +65,5 @@ jobs:
context: ./bullseye
file: ./bullseye/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}