2019-03-22 00:11:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-11-12 23:36:04 +00:00
|
|
|
. ./scripts/version.sh
|
|
|
|
|
2020-03-17 01:03:20 +00:00
|
|
|
airgap_image_file='scripts/airgap/image-list.txt'
|
|
|
|
images=$(cat "${airgap_image_file}")
|
2019-03-22 00:11:42 +00:00
|
|
|
xargs -n1 docker pull <<< "${images}"
|
2020-05-27 15:27:30 +00:00
|
|
|
docker save ${images} -o dist/artifacts/k3s-airgap-images-${ARCH}.tar
|
2020-09-17 22:14:18 +00:00
|
|
|
if [ ${ARCH} = amd64 ]; then
|
|
|
|
cp "${airgap_image_file}" dist/artifacts/k3s-images.txt
|
|
|
|
fi
|