mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
BuildKit compresses zstd at about level 11 at most, so the release and nightly images now go through a composite action: the image is built into an OCI layout, every layer is recompressed with the zstd CLI at level 19, and a second build that only names the layout pushes it. BuildKit keeps the recompressed layers and still attaches provenance and the SBOM to the pushed digests. On 2.4.0 this takes the native image from 94.6 to 70.1 MB on amd64 and from 92.6 to 67.1 MB on arm64, and compat amd64 from 223.2 to 167.7 MB. Pulling zstd layers needs Docker Engine 23.0 or later, so the installation requirements move up from 20.10. A new workflow tests the action on the pull requests that change it: recompress.py against fixture layouts, then the whole action pushing a two-platform image to a registry on the runner.