Skip to content

Commit 7184731

Browse files
fix(ci): Only generate SHA tags for branch pushes, not releases
Fixes Docker publish workflow failing on release events with invalid tag format ':-{sha}' when {{branch}} template is empty.
1 parent ec8c313 commit 7184731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
type=semver,pattern={{version}}
4545
type=semver,pattern={{major}}.{{minor}}
4646
type=ref,event=branch
47-
type=sha,prefix={{branch}}-
47+
type=sha,prefix=,enable=${{ github.event_name == 'push' && github.ref_type == 'branch' }}
4848
type=raw,value=latest,enable={{is_default_branch}}
4949
labels: |
5050
org.opencontainers.image.title=Glean MCP Server

0 commit comments

Comments
 (0)