Skip to content

Skip the branch-sha Docker tag on tag pushes - #3

Merged
stut merged 1 commit into
mainfrom
fix/docker-sha-tag-on-tags
Jul 20, 2026
Merged

stut merged 1 commit into
mainfrom
fix/docker-sha-tag-on-tags

Conversation

@stut

@stut stut commented Jul 20, 2026

Copy link
Copy Markdown
Owner

The v1.1.0 tag push failed the Docker publish workflow: the type=sha,prefix={{branch}}- tag template expands {{branch}} to an empty string on tag events, producing the invalid reference s3dir:-702f288 and failing the entire buildx push — so tagged releases never published an image (the binaries Release workflow succeeded).

Fix: enable the branch-sha tag only when github.ref_type == 'branch'. Tag pushes are fully covered by the three semver patterns plus latest.

After merging, v1.1.0 needs re-pointing at the fix commit (workflow definitions are read from the tag's own commit, so re-running the failed job or re-pushing the same tag would still use the broken template). The only diff is this workflow line — the binaries already published for v1.1.0 are built from identical code. I can do the re-tag once this lands.

On a v* tag push {{branch}} expands to nothing, producing the invalid
image tag ':-<sha>' and failing the whole buildx push, so tagged
releases never published a Docker image. Only emit the branch-sha tag
for branch pushes; semver tags cover releases.
@stut
stut merged commit b6337fe into main Jul 20, 2026
8 checks passed
@stut
stut deleted the fix/docker-sha-tag-on-tags branch July 20, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant