From c2108c0c987239553c0811d831822bbf2ccaf545 Mon Sep 17 00:00:00 2001 From: tranch Date: Tue, 1 Dec 2026 15:30:09 +0800 Subject: ci: pass Chunkah config through a file Avoid the runner argument size limit when inspecting the full Bazzite image metadata. --- Justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 23739a5..6ef5e7a 100644 --- a/Justfile +++ b/Justfile @@ -183,11 +183,15 @@ rechunk $target_image=image_name $tag=default_tag: # 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}")" + config_dir="$(mktemp -d)" + trap 'rm -rf "${config_dir}"' EXIT + podman inspect "${target_image}:${tag}" > "${config_dir}/image.json" podman run --rm --mount=type=image,src="${target_image}:${tag}",target=/chunkah \ - -e CHUNKAH_CONFIG_STR quay.io/coreos/chunkah:latest \ + --volume "${config_dir}/image.json:/chunkah-config.json:ro" \ + quay.io/coreos/chunkah:latest \ build \ --verbose \ + --config /chunkah-config.json \ --max-layers 128 \ --prune /sysroot/ \ --label ostree.commit- --label ostree.final-diffid- \ -- cgit v1.2.3