Skip to content

github-builder: resolve source date epochs for reproducible builds - #1376

Merged
vvoland merged 1 commit into
docker:mainfrom
crazy-max:github-builder-source-date-epoch
Oct 19, 2026
Merged

vvoland merged 1 commit into
docker:mainfrom
crazy-max:github-builder-source-date-epoch

Conversation

@crazy-max

Copy link
Copy Markdown
Member

relates to docker/github-builder#307

Add a shared source date epoch resolver for the build and bake workflow changes proposed in docker/github-builder#307. It accepts a Unix timestamp, including zero, or commit to use the event commit's committer time without a checkout. It returns the epoch and corresponding ISO timestamp so the workflows can use the same time for build outputs and generated image metadata.

Keeping this logic in the toolkit avoids duplicating parsing, validation, and GitHub API calls across the workflows and provides focused unit coverage. The workflows will consume the helper after a runtime release. This supports reproducible image contents without promising identical final index digests, since provenance contains execution-specific data.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max requested review from a team and tonistiigi October 17, 2026 10:28
@vvoland
vvoland merged commit 3c87666 into docker:main Oct 19, 2026
118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants