diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-12-01 15:24:00 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-12-01 15:24:00 +0800 |
| commit | ccea4e13076857f6034afae165408f9fbe09aea3 (patch) | |
| tree | 27f81d30ae3d0394d42c7eb16f5502464d1e6fc8 | |
| parent | 3064746f5c9155802ef2036115e6949fc9fc9fd0 (diff) | |
| download | AeroCore-OS-ccea4e13076857f6034afae165408f9fbe09aea3.tar.gz AeroCore-OS-ccea4e13076857f6034afae165408f9fbe09aea3.zip | |
ci: try faster Chunkah rechunk on testing
Use uncompressed intermediate layers and validate the rechunked image
before publishing.
| -rw-r--r-- | .github/workflows/build.yml | 19 | ||||
| -rw-r--r-- | Justfile | 10 |
2 files changed, 11 insertions, 18 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db94eb6..30628d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -196,23 +196,18 @@ jobs: "${IMAGE_NAME}" \ "${DEFAULT_TAG}" - # This is optional, this provides smaller delta updates - - name: Rechunk with rpm-ostree + # Split the image into layers for smaller delta updates. + - name: Rechunk with Chunkah id: rechunk run: | - sudo -E "$(command -v just)" ostree-rechunk \ + sudo -E "$(command -v just)" rechunk \ "${IMAGE_NAME}" \ "${DEFAULT_TAG}" - # If you are feeling adventurous, use the new distro agnostic rechunker - # https://github.com/coreos/chunkah - # You can delete the Rechunk with rpm-ostree portion then if you use this - #- name: Rechunk with Chunkah - # id: rechunk - # run: | - # sudo -E $(command -v just) rechunk \ - # ${IMAGE_NAME} \ - # ${DEFAULT_TAG} + - name: Validate rechunked image + run: | + sudo podman run --rm --entrypoint bootc \ + "${IMAGE_NAME}:${DEFAULT_TAG}" container lint - name: Generate Build Tags id: gen-build-tags @@ -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- \ |
