Skip to content

build/bake: support reproducible timestamps with source-date-epoch - #338

Open
crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:source-date-epoch
Open

crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:source-date-epoch

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #307

Add an optional source-date-epoch input to both workflows to align build output and generated metadata timestamps. It accepts a non-negative Unix timestamp, including zero, or commit to use the event commit's committer time without a checkout. Image exports enable timestamp rewriting for layer contents, while local exports use BuildKit's built-in timestamp handling. Leaving the input empty preserves existing behavior.

Provenance still contains execution-specific data, so final image index digests can differ even when image contents are reproducible.

@crazy-max
crazy-max requested a review from tonistiigi November 5, 2026 13:51
@crazy-max
crazy-max requested a review from a team as a code owner November 5, 2026 13:51
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

Support reproducible builds with SOURCE_DATE_EPOCH

1 participant