From ccea4e13076857f6034afae165408f9fbe09aea3 Mon Sep 17 00:00:00 2001 From: tranch Date: Tue, 1 Dec 2026 15:24:00 +0800 Subject: ci: try faster Chunkah rechunk on testing Use uncompressed intermediate layers and validate the rechunked image before publishing. --- Justfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Justfile') diff --git a/Justfile b/Justfile index e0c1ca5..23739a5 100644 --- a/Justfile +++ b/Justfile @@ -181,15 +181,13 @@ rechunk $target_image=image_name $tag=default_tag: set -xeuo pipefail - # TODO: pin chunkah image to hash once mature enough - # You may run into space issues on github runenrs as we are making a - # complete copy of the image - export CHUNKAH_CONFIG_STR=$(podman inspect "${target_image}") - podman run --rm --mount=type=image,src="${target_image}",target=/chunkah \ + # Chunkah creates an uncompressed intermediate OCI archive; podman + # compresses the layers when pushing the image to the registry. + export CHUNKAH_CONFIG_STR="$(podman inspect "${target_image}:${tag}")" + podman run --rm --mount=type=image,src="${target_image}:${tag}",target=/chunkah \ -e CHUNKAH_CONFIG_STR quay.io/coreos/chunkah:latest \ build \ --verbose \ - --compressed \ --max-layers 128 \ --prune /sysroot/ \ --label ostree.commit- --label ostree.final-diffid- \ -- cgit v1.2.3