fix(version): inject release tag via Dockerfile VERSION build-arg (#16) #27

Closed
pilot wants to merge 1 commit from pilot/i/16-version-ldflags into main AGit
Owner

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

Adds ARG VERSION="" to the build stage and passes it to go build via -ldflags "-X .../internal/version.Tag=<value>". 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
fix(version): inject release tag via Dockerfile VERSION build-arg (#16)
All checks were successful
fragment-check / changelog fragment-kind (pull_request) Successful in 5s
fragment-check / check (pull_request) Successful in 0s
go-ci / lint + build + test (pull_request) Successful in 57s
manifest-check / manifest-vs-tag consistency (pull_request) Successful in 5s
manifest-check / check (pull_request) Successful in 0s
7e15724d14
Adds ARG VERSION="" to the build stage and passes it to go build via
-ldflags "-X .../internal/version.Tag=<value>". 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
pilot closed this pull request 2026-08-05 22:54:02 +02:00
All checks were successful
fragment-check / changelog fragment-kind (pull_request) Successful in 5s
fragment-check / check (pull_request) Successful in 0s
go-ci / lint + build + test (pull_request) Successful in 57s
manifest-check / manifest-vs-tag consistency (pull_request) Successful in 5s
manifest-check / check (pull_request) Successful in 0s

Pull request closed

Sign in to join this conversation.
No description provided.