Add gzip and zst airgap artifacts

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/3180/head
Brad Davidson 2021-04-09 15:56:40 -07:00 committed by Brad Davidson
parent 693c5290b1
commit 503d6813bb
1 changed files with 2 additions and 0 deletions

View File

@ -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