Skip to content

Commit c5d1093

Browse files
authored
fix: strip v prefix from Docker image tags on release (#242)
## Summary `GITHUB_REF_NAME` includes the `v` prefix (e.g. `v1.0.0-rc.4`); Docker image tags should not (e.g. `1.0.0-rc.4`). Fixes a regression introduced in 78758f6 that caused image tags from `1.0.0-beta.7` onwards to be published with a leading `v`. ## Test plan - [ ] Merge, let CI pass, cut next release tag and confirm image is published as `1.0.0-rc.x` not `v1.0.0-rc.x` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
2 parents 7b6e67d + 02bf68b commit c5d1093

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200

201201
- name: Promote build image to release tags
202202
run: |
203-
VERSION=${GITHUB_REF_NAME}
203+
VERSION=${GITHUB_REF_NAME#v}
204204
SOURCE="${IMAGE}@${{ steps.build.outputs.digest }}"
205205
206206
if [[ "${VERSION}" == *-* ]]; then

0 commit comments

Comments
 (0)