fix(ci): bake MOKOSH_GIT_HASH + describe + date into OCI build #97
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/e2e-runner-toolcache"
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?
The OCI Dockerfile reads MOKOSH_GIT_HASH / MOKOSH_GIT_DESCRIBE / MOKOSH_BUILD_DATE / SOURCE_DATE_EPOCH as build-args, but the build workflow only ever passed an unused GIT_SHA arg. With no real values supplied and
.gitdeliberately absent from the build context (oci-build/Dockerfile:10-15),build.rsfell back to "unknown" / "v" and the deployed image reportedgit_hash=unknownon/api/v1/version. The PMS-140 deploy-sync gate then polled forever for a hash that the server could not advertise.Resolve the metadata from git in a new "Resolve build metadata" step (fetch-depth: 0 was already set on checkout) and pass it as --build-arg in the buildx invocation. SOURCE_DATE_EPOCH comes from the commit's own timestamp so the build is reproducible against a given SHA; the wall-clock build date is the standard --utc --iso-8601 form.
The previous GIT_SHA arg was a no-op and is dropped.
#PMS-140