From df63db35d76e8f6e7c089c61b1ce0b5a04f94e3b Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Tue, 12 Aug 2025 18:37:12 -0700 Subject: [PATCH] Fix multi-tag output on main --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ece0e61..5fccd8b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: with: images: audius/api tags: | + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }},suffix=-amd64 type=sha,prefix=,suffix=-amd64 - name: Build and push @@ -66,6 +67,7 @@ jobs: with: images: audius/api tags: | + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }},suffix=-arm64 type=sha,prefix=,suffix=-arm64 - name: Build and push @@ -116,8 +118,11 @@ jobs: - name: Create and push Docker manifest run: | - docker buildx imagetools create --tag ${{ steps.meta.outputs.tags }} \ - ${{ steps.arch-meta.outputs.tags }} + TAG_ARGS="" + for tag in ${{ steps.meta.outputs.tags }}; do + TAG_ARGS="$TAG_ARGS --tag $tag" + done + docker buildx imagetools create $TAG_ARGS ${{ steps.arch-meta.outputs.tags }} - name: Get short SHA for release if: github.ref == 'refs/heads/main'