Skip to content

Build the images reproducibly: same inputs, same digest - #6

Merged
Kinflou merged 5 commits into
mainfrom
reproducible
Nov 12, 2026
Merged

Kinflou merged 5 commits into
mainfrom
reproducible

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Rebuilding an unchanged image should give the same digest, so a merge to main stops republishing all four images and Renovate stops opening digest-bump PRs for images that did not change.

  • Drop the org.opencontainers.image.revision label and the REVISION build-arg; the build provenance attestation records the commit.
  • SOURCE_DATE_EPOCH is derived from DEBIAN_SNAPSHOT (images/source-date-epoch.sh); images are exported with rewrite-timestamp=true. BuildKit is pinned by digest.
  • apt-install.sh and rustup.sh remove logs and caches that vary between builds.
  • Pull requests build each image twice, with no cache, and fail if the OCI manifest digests differ (images/oci-diff.py prints the differing files).
  • Publish: the merge job compares the per-architecture manifests with :latest; when they are the same it only adds the sha tags to the existing index and skips the attestation.
  • Docs: "Reproducible builds" in images/versions.md.

Kinflou added 5 commits November 12, 2026 07:24
Drop the revision label and build-arg (the build provenance attestation
records the commit), set SOURCE_DATE_EPOCH from DEBIAN_SNAPSHOT and export
with rewrite-timestamp, remove logs and caches that vary between builds,
and pin BuildKit. A pull request builds each image twice without a cache
and fails if the manifest digests differ. A publish whose per-architecture
manifests are the ones :latest already has pushes and attests nothing new.
@Kinflou
Kinflou marked this pull request as ready for review November 12, 2026 00:26
@Kinflou
Kinflou merged commit 7b13fb1 into main Nov 12, 2026
8 checks passed
@Kinflou
Kinflou deleted the reproducible branch November 12, 2026 00:26
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.

1 participant