From 8f0fee838ef0cb483a40614caedfc3602ab0caa5 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sun, 15 Feb 2026 08:42:50 -0500 Subject: [PATCH] Fix invalid Docker tag format in GitHub Actions workflow Changed SHA tag prefix from `{{branch}}-` to `sha-` to fix build failures when creating releases from tags. The `{{branch}}` variable is empty when building from tags (e.g., v1.0.0), which resulted in invalid Docker tags like `:-7bdde95` instead of `sha-7bdde95`. This fixes the v1.0.0 release build failure. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .github/workflows/build-and-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 58c617b..c4d6b27 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -49,7 +49,7 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=sha,prefix={{branch}}- + type=sha,prefix=sha- type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image