File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ mkdir -p ${DATA_DIR}
2525case ${OS} in
2626 linux)
2727 git clone --single-branch --branch=${VERSION_RUNC} --depth=1 https://github.com/opencontainers/runc ${RUNC_DIR}
28- curl --compressed -sfL https://github.com/k3s-io/k3s-root/releases/download/${VERSION_ROOT} /k3s-root-${ARCH} .tar | tar xf -
28+ K3S_ROOT_TAR=" k3s-root-${ARCH} .tar"
29+ curl --compressed -sfL https://github.com/k3s-io/k3s-root/releases/download/${VERSION_ROOT} /${K3S_ROOT_TAR} -o ${K3S_ROOT_TAR}
30+ echo " ${K3S_ROOT_SHA256} ${K3S_ROOT_TAR} " | sha256sum -c
31+ tar xf " ${K3S_ROOT_TAR} "
32+ rm -f " ${K3S_ROOT_TAR} " sha256sum-${ARCH} .txt
2933 ;;
3034 windows)
3135 git clone --single-branch --branch=${VERSION_HCSSHIM} --depth=1 https://github.com/microsoft/hcsshim ${HCSSHIM_DIR}
Original file line number Diff line number Diff line change @@ -64,6 +64,24 @@ if [ -z "$VERSION_KUBE_ROUTER" ]; then
6464fi
6565
6666VERSION_ROOT=" v0.15.0"
67+ case ${ARCH} in
68+ amd64)
69+ K3S_ROOT_SHA256=" 20066815d9941185fce3934cc3bae2fa3e2dbb46ca7e63462efb2ea59f1b15c4"
70+ ;;
71+ arm)
72+ K3S_ROOT_SHA256=" 2e43dac7750da52a756a9d4e8598d6e89937d565582660b26ca124bd9c8dbfaa"
73+ ;;
74+ arm64)
75+ K3S_ROOT_SHA256=" 4bdfc715dc8b5e2c4956f8686b895a56386f4cc6468215dcd22130a680650577"
76+ ;;
77+ riscv64)
78+ K3S_ROOT_SHA256=" 0e79998acaa156059ba1ff676a4e5f290069e25f799de43ee016a0e780f9d4d3"
79+ ;;
80+ * )
81+ echo " [ERROR] unsupported architecture: ${ARCH} "
82+ exit 1
83+ ;;
84+ esac
6785
6886VERSION_HELM_JOB=" v0.9.15-build20260324"
6987
You can’t perform that action at this time.
0 commit comments