mirror of https://github.com/rancher/rke2.git
21 lines
784 B
Bash
Executable File
21 lines
784 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
source ./scripts/version.sh
|
|
|
|
if [ "${GOARCH}" == "s390x" ] || [ "${GOARCH}" == "arm64" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
docker image save \
|
|
${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} | \
|
|
zstd -T0 -16 -f --long=25 --no-progress - -o build/images/${PROG}-images.${PLATFORM}.tar.zst
|
|
./scripts/build-upload dist/artifacts/${RELEASE}.tar.gz build/images/${PROG}-images.${PLATFORM}.tar.zst ${COMMIT}
|
|
|
|
docker image save \
|
|
${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-${ARCH} | \
|
|
zstd -T0 -16 -f --long=25 --no-progress - -o build/images/${PROG}-images.windows-${ARCH}.tar.zst
|
|
./scripts/build-upload dist/artifacts/${PROG}.windows-${ARCH}.tar.gz build/images/${PROG}-images.windows-${ARCH}.tar.zst ${COMMIT}
|