feat(build): stamp image with commit sha and build date #15

Merged
w33ble merged 1 commit from feat/build-info into main 2026-09-25 16:31:11 -06:00
Collaborator

Adds build metadata to Docker images, matching the pattern used in lagom:

  • cmd/mediacast: commit / date vars set via -ldflags -X, logged at startup
  • Dockerfile: COMMIT / DATE build args, baked into the binary and exposed as org.opencontainers.image.revision / .created / .source labels
  • build.yaml: passes ${GITHUB_SHA::8} and $(date -u +%Y-%m-%dT%H:%M:%SZ) build-args

Verified locally: docker build with test args produces correct labels, and startup log shows commit=... build_date=....

Adds build metadata to Docker images, matching the pattern used in lagom: - `cmd/mediacast`: `commit` / `date` vars set via `-ldflags -X`, logged at startup - `Dockerfile`: `COMMIT` / `DATE` build args, baked into the binary and exposed as `org.opencontainers.image.revision` / `.created` / `.source` labels - `build.yaml`: passes `${GITHUB_SHA::8}` and `$(date -u +%Y-%m-%dT%H:%M:%SZ)` build-args Verified locally: docker build with test args produces correct labels, and startup log shows `commit=... build_date=...`.
feat(build): stamp image with commit sha and build date
All checks were successful
ci / check (pull_request) Successful in 3m36s
04665ed33c
w33ble approved these changes 2026-09-25 16:30:58 -06:00
w33ble merged commit cbe36ebeab into main 2026-09-25 16:31:11 -06:00
w33ble deleted branch feat/build-info 2026-09-25 16:31:11 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
w33ble/mediacast!15
No description provided.