diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-12-01 15:30:09 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-12-01 15:30:09 +0800 |
| commit | c2108c0c987239553c0811d831822bbf2ccaf545 (patch) | |
| tree | bb45c11659cef0867e8da837ef55921214c7dfc0 /Justfile | |
| parent | ccea4e13076857f6034afae165408f9fbe09aea3 (diff) | |
| download | AeroCore-OS-c2108c0c987239553c0811d831822bbf2ccaf545.tar.gz AeroCore-OS-c2108c0c987239553c0811d831822bbf2ccaf545.zip | |
ci: pass Chunkah config through a filetesting-45.20261201testing
Avoid the runner argument size limit when inspecting the full Bazzite
image metadata.
Diffstat (limited to 'Justfile')
| -rw-r--r-- | Justfile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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- \ |
