From 9912bca42c32749b10d342d06c29002bc680e633 Mon Sep 17 00:00:00 2001 From: Dmytro Sirant Date: Wed, 8 Jul 2026 13:15:11 +1000 Subject: [PATCH] fix(ci): lowercase ghcr.io image name in per-arch digest push docker/metadata-action lowercases the tags it generates, but the per-arch build job's build-push-action outputs= field referenced the raw (mixed-case) github.repository directly, bypassing that. ghcr.io rejects mixed-case repository names, so both amd64 and arm64 jobs failed at push time even though the build itself succeeded. --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1cabaac..b0f092d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,6 +68,7 @@ jobs: run: | platform=${{ matrix.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> "$GITHUB_ENV" + echo "IMAGE=ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4.2.0 @@ -83,7 +84,7 @@ jobs: id: meta uses: docker/metadata-action@v6.2.0 with: - images: ghcr.io/${{ github.repository }} + images: ${{ env.IMAGE }} - name: Build and push by digest id: build @@ -94,7 +95,7 @@ jobs: target: runtime platforms: ${{ matrix.platform }} labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=ghcr.io/${{ github.repository }},push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=true cache-from: type=gha,scope=${{ matrix.platform }} cache-to: type=gha,mode=max,scope=${{ matrix.platform }}