From cab949b2f1079c4cfd57121097cebddcb8c03a0b Mon Sep 17 00:00:00 2001 From: Zac Lovoy Date: Thu, 21 Aug 2025 23:56:54 -0700 Subject: [PATCH] Updated release workflow to use imagetools so that all platforms have release tags added --- .github/workflows/release.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 66636d3..66ffa0d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,18 +63,12 @@ jobs: - name: Re-tag Existing Image if: steps.check_image.outputs.image_exists == 'true' run: | - echo "Re-tagging existing image..." + echo "Re-tagging existing multi-platform image..." - # Pull the existing image - docker pull ghcr.io/zozman/stream-webpage-container:sha-${{ github.sha }} - - # Tag with latest and version - docker tag ghcr.io/zozman/stream-webpage-container:sha-${{ github.sha }} ghcr.io/zozman/stream-webpage-container:latest - docker tag ghcr.io/zozman/stream-webpage-container:sha-${{ github.sha }} ghcr.io/zozman/stream-webpage-container:${{ github.ref_name }} - - # Push the new tags - docker push ghcr.io/zozman/stream-webpage-container:latest - docker push ghcr.io/zozman/stream-webpage-container:${{ github.ref_name }} + # Use buildx imagetools to create new tags that reference the same multi-platform manifest + # This preserves both amd64 and arm64 platforms + docker buildx imagetools create --tag ghcr.io/zozman/stream-webpage-container:latest ghcr.io/zozman/stream-webpage-container:sha-${{ github.sha }} + docker buildx imagetools create --tag ghcr.io/zozman/stream-webpage-container:${{ github.ref_name }} ghcr.io/zozman/stream-webpage-container:sha-${{ github.sha }} - name: Generate Docker Metadata For New Build if: steps.check_image.outputs.image_exists == 'false'