-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement
SOURCE_DATE_EPOCH
build argument
In general, buildkit ignores timestamps when caching intermediate build results, but still timestamps leak into the final container image. So if the package is rebuilt with cache, output image stays same (even though build step might produce different timestamps, but same content, final output will still be cached). This new feature enforces timestamp from `SOURCE_DATE_EPOCH` on the output in the `finalize` step so that build is reproducible. The downside is that if the build step is used in other steps, and `SOURCE_DATE_EPOCH` is used, it might cause cascading rebuilds. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
4 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters