CI: bump up crun to 1.4.4
https://github.com/containers/crun/compare/1.3...1.4.4 Also adds `crun-version` file for consistency with `runc-version`. (Note: unlike runc, crun does not prepend "v" to a version tag) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
11685ccdef
commit
b1030e7b68
1
script/setup/crun-version
Normal file
1
script/setup/crun-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.4.4
|
@ -20,9 +20,9 @@
|
|||||||
#
|
#
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
function install_runc() {
|
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
|
||||||
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
|
|
||||||
|
|
||||||
|
function install_runc() {
|
||||||
# When updating runc-version, consider updating the runc module in go.mod as well
|
# When updating runc-version, consider updating the runc module in go.mod as well
|
||||||
: "${RUNC_VERSION:=$(cat "${script_dir}/runc-version")}"
|
: "${RUNC_VERSION:=$(cat "${script_dir}/runc-version")}"
|
||||||
|
|
||||||
@ -37,8 +37,8 @@ function install_runc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function install_crun() {
|
function install_crun() {
|
||||||
CRUN_VERSION=1.3
|
: "${CRUN_VERSION:=$(cat "${script_dir}/crun-version")}"
|
||||||
curl -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/"${CRUN_VERSION}"/crun-"${CRUN_VERSION}"-linux-"$(go env GOARCH)"
|
curl -S -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/"${CRUN_VERSION}"/crun-"${CRUN_VERSION}"-linux-"$(go env GOARCH)"
|
||||||
chmod +x /usr/local/sbin/runc
|
chmod +x /usr/local/sbin/runc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user