From 56ac51105c6afd7f04c645ec7a36ccfc5f57b1f4 Mon Sep 17 00:00:00 2001 From: ThePhaseless Date: Fri, 28 Feb 2025 17:09:23 +0100 Subject: [PATCH] tweak labels --- .github/workflows/docker-publish.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 81f4c2d..7151bb9 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -179,7 +179,6 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=raw,enable=${{ github.ref_type == 'tag' }}, value=latest images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} # Download all image artifacts @@ -207,19 +206,22 @@ jobs: TAGS="${{ steps.meta.outputs.tags }}" for TAG in $TAGS; do # Tag the local images with their registry counterparts - docker tag local-${{ github.sha }}-amd64 $TAG-amd64 - docker tag local-${{ github.sha }}-arm64 $TAG-arm64 + docker tag local-${{ github.sha }}-amd64 local-amd64 + docker tag local-${{ github.sha }}-arm64 local-arm64 - # Push individual platform images - # docker push $TAG-amd64 - # docker push $TAG-arm64 - - # Create manifest list and push it + # Push individual images docker buildx imagetools create -t $TAG \ - $TAG-amd64 \ - $TAG-arm64 + local-amd64 \ + local-arm64 done + if [ "${{ github.ref_type }}" == "tag" ]; then + docker buildx imagetools create -t latest \ + ${{ steps.meta.outputs.tags }}, + local-amd64 \ + local-arm64 + fi + # Sign the manifest - name: Sign the manifests env: