fix(version): inject release tag via Dockerfile VERSION build-arg (#16) #27
No reviewers
Labels
No labels
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
status/deferred
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/purser!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pilot/i/16-version-ldflags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds ARG VERSION="" to the build stage and passes it to go build via
-ldflags "-X .../internal/version.Tag=". Empty string (the
default) preserves the existing fallback: VCS commit hash from
debug.ReadBuildInfo, or "dev" when VCS info is absent.
Usage:
docker compose build --build-arg VERSION=v0.1.0
The CI deploy wiring (auto-injection at release cut) is a follow-up
tracked at purser#19 (Engineer's assignment).
Closes #16
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01M8RrscAu123S6gXTGruwnq
Pull request closed