Update docker-publish.yml

This commit is contained in:
John Edwards 2023-10-05 20:56:55 +01:00 committed by GitHub
parent bf91b08f27
commit 23762c2b1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,11 +51,6 @@ jobs:
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# set version tag
type=semver,pattern={{version}}
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@ -67,5 +62,9 @@ jobs:
context: ./bullseye
file: ./bullseye/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# set version tag
type=semver,pattern={{version}}
labels: ${{ steps.meta.outputs.labels }}