feat(build): stamp image with commit sha and build date #15
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/build-info"
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 build metadata to Docker images, matching the pattern used in lagom:
cmd/mediacast:commit/datevars set via-ldflags -X, logged at startupDockerfile:COMMIT/DATEbuild args, baked into the binary and exposed asorg.opencontainers.image.revision/.created/.sourcelabelsbuild.yaml: passes${GITHUB_SHA::8}and$(date -u +%Y-%m-%dT%H:%M:%SZ)build-argsVerified locally: docker build with test args produces correct labels, and startup log shows
commit=... build_date=....