Skip to content

fix: source release-config.sh from main in build-docker.yaml#216

Merged
ZhiyuCircle merged 1 commit into
circlefin:mainfrom
sdaveas-circle:fix/public-docker-tag-v-prefix
Jul 22, 2026
Merged

fix: source release-config.sh from main in build-docker.yaml#216
ZhiyuCircle merged 1 commit into
circlefin:mainfrom
sdaveas-circle:fix/public-docker-tag-v-prefix

Conversation

@sdaveas-circle

Copy link
Copy Markdown
Contributor

Summary

v0.7.3's public Docker images were tagged v0.7.3 instead of 0.7.3, inconsistent with every prior release.

Details

Both the build and manifest jobs check out refs/tags/{tag} and then source scripts/release-config.sh from that same checked-out tree. The v0.7.3 tag pointed at an older commit whose copy of release-config.sh predated the fix that strips the leading v from the parsed version — so release_docker_image_version_from_tag returned v0.7.3 verbatim, and the manifest job tagged the image with it directly (docker buildx imagetools create -t "${IMAGE}:${IMAGE_VERSION}").

Fix:

  • Pull scripts/release-config.sh from origin/main instead of the tag checkout (needs fetch-depth: 0 to make origin/main resolvable), so the parser used is always current regardless of which commit the tag happens to point at.
  • Defense in depth: strip a stray leading v from IMAGE_VERSION right before building the tag, so a future parser regression can't silently republish a vX.Y.Z tag.

Testing

  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/build-docker.yaml')" — clean
  • actionlint .github/workflows/build-docker.yaml — clean
  • Simulated the bug locally: an old release-config.sh (raw tag passthrough) checked out at a tag produces v0.7.3; sourcing the current main copy instead produces 0.7.3.

Documentation

N/A — CI workflow-only change.

A release tag can point at an old commit whose release-config.sh
predates fixes this workflow expects, so the checked-out copy silently
computes a wrong image version. v0.7.3 published Docker tags as
"v0.7.3" instead of "0.7.3" because of exactly this: pull the script
from origin/main instead, and strip a stray leading "v" as a backstop.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sdaveas-circle
sdaveas-circle force-pushed the fix/public-docker-tag-v-prefix branch from 31a1cad to 02f4c10 Compare July 22, 2026 17:25
@ZhiyuCircle
ZhiyuCircle merged commit c9db732 into circlefin:main Jul 22, 2026
17 checks passed
@github-actions github-actions Bot added the pending-import Merged PR awaiting reverse-sync to upstream label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-import Merged PR awaiting reverse-sync to upstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants