From e279174d04ed2de2cd8d23ce3a28148ef39b5834 Mon Sep 17 00:00:00 2001 From: Matthew Valancy Date: Sat, 13 Jun 2026 11:03:19 -0700 Subject: [PATCH] Fix invalid Docker image tag on PRs to main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docker-publish.yml used `type=sha,prefix={{branch}}-`, but on a pull_request event the metadata-action `{{branch}}` placeholder is empty, so the computed tag became `ghcr.io/...:-` — an invalid reference that failed every build-and-push job on PRs targeting main (blocking the develop→main promotion / prod image pipeline). Use a static `sha-` prefix so the tag is valid on branch pushes, tags, and PRs alike. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9d11df70..a4f0683b 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -61,7 +61,7 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable={{is_default_branch}} - type=sha,prefix={{branch}}- + type=sha,prefix=sha- - name: Build and push Docker image uses: docker/build-push-action@v5