From 9035fb68f7cc2256ccae75679a6396c760993fe7 Mon Sep 17 00:00:00 2001 From: adrianc Date: Wed, 29 Nov 2023 14:09:46 +0200 Subject: [PATCH] Fix image push worklow for release - disable latest tag generation in docker meta action - remove un-needed IMAGE_NAME var from manifest creation, docker meta tags is already with the full name. Signed-off-by: adrianc --- .github/workflows/image-push-release.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/image-push-release.yml b/.github/workflows/image-push-release.yml index f4e3930b1..f1d0c6078 100644 --- a/.github/workflows/image-push-release.yml +++ b/.github/workflows/image-push-release.yml @@ -28,6 +28,8 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.IMAGE_NAME }} + flavor: | + latest=false tags: | type=ref,event=tag @@ -68,6 +70,8 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.IMAGE_NAME }} + flavor: | + latest=false tags: | type=ref,event=tag @@ -109,6 +113,8 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.IMAGE_NAME }} + flavor: | + latest=false tags: | type=ref,event=tag @@ -136,6 +142,8 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.IMAGE_NAME }} + flavor: | + latest=false tags: | type=ref,event=tag @@ -148,7 +156,7 @@ jobs: - name: Create manifest for multi-arch images run: | - docker buildx imagetools create -t ${{ env.IMAGE_NAME }}:${{ steps.docker_meta.outputs.tags }} \ - ${{ env.IMAGE_NAME }}:${{ steps.docker_meta.outputs.tags }}-amd64 \ - ${{ env.IMAGE_NAME }}:${{ steps.docker_meta.outputs.tags }}-arm64 \ - ${{ env.IMAGE_NAME }}:${{ steps.docker_meta.outputs.tags }}-ppc64le + docker buildx imagetools create -t ${{ steps.docker_meta.outputs.tags }} \ + ${{ steps.docker_meta.outputs.tags }}-amd64 \ + ${{ steps.docker_meta.outputs.tags }}-arm64 \ + ${{ steps.docker_meta.outputs.tags }}-ppc64le