From 503d6813bb5f8bef539ce850147b74472713f416 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 9 Apr 2021 15:56:40 -0700 Subject: [PATCH] Add gzip and zst airgap artifacts Signed-off-by: Brad Davidson --- scripts/package-airgap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/package-airgap b/scripts/package-airgap index 9228577c81..3f05e086fc 100755 --- a/scripts/package-airgap +++ b/scripts/package-airgap @@ -9,6 +9,8 @@ airgap_image_file='scripts/airgap/image-list.txt' images=$(cat "${airgap_image_file}") xargs -n1 docker pull <<< "${images}" docker save ${images} -o dist/artifacts/k3s-airgap-images-${ARCH}.tar +zstd -T0 -16 -f --long=25 dist/artifacts/k3s-airgap-images-${ARCH}.tar -o dist/artifacts/k3s-airgap-images-${ARCH}.tar.zst +gzip -v -c dist/artifacts/k3s-airgap-images-${ARCH}.tar > dist/artifacts/k3s-airgap-images-${ARCH}.tar.gz if [ ${ARCH} = amd64 ]; then cp "${airgap_image_file}" dist/artifacts/k3s-images.txt fi