From ab18f8cea889549bad24c80c3b17ab026eeae81c Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Mon, 29 Jan 2024 13:27:24 +0100 Subject: [PATCH] fix(ci): properly set docker image tags. --- .github/workflows/build-publish-image.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-publish-image.yml b/.github/workflows/build-publish-image.yml index 71f2f97609..bf9a623f3c 100644 --- a/.github/workflows/build-publish-image.yml +++ b/.github/workflows/build-publish-image.yml @@ -35,7 +35,10 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_IMAGE }} - + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=ref,event=branch + type=sha - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -56,8 +59,7 @@ jobs: context: . platforms: ${{ matrix.platform }} labels: ${{ steps.meta.outputs.labels }} - tags: | - type=raw,value=latest,enable={{is_default_branch}} + tags: ${{ steps.meta.output.tags }} outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true - name: Docker container vulnerability scan