From 3c483ec15f3d94a97d3ec619fa65a87840080695 Mon Sep 17 00:00:00 2001 From: John Edwards Date: Thu, 5 Oct 2023 21:01:53 +0100 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b2f3bfe..0b4b673 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 }}