chainguard-images / actions

GitHub actions for the chainguard-images
Apache License 2.0
17 stars 22 forks source link

This stops passing "now" as the `SOURCE_DATE_EPOCH` to `apko`. #112

Closed mattmoor closed 1 year ago

mattmoor commented 1 year ago

We have made changes to apko to compute the "build date epoch" based on MAX(installed packages builddate), which should make the image timestamp a reflection of the last time one of the packages contributing to the image changed.

This should result in significantly less nightly churn from image rebuilds where only the timestamp changes.

mattmoor commented 1 year ago

Needs: https://github.com/wolfi-dev/os/pull/2264 to land first, lest we revert to the unix epoch for some images.

mattmoor commented 1 year ago

I confirmed that an apko build pulls in the Wolfi baselayout's timestamp when this is unset, so I think this is good to go 🤞