mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-24 10:41:43 +00:00
ci: set $yq_version to 2.3.0
According what I said in https://github.com/kata-containers/tests/issues/1349, use the last verion is not a good choice. This commit set it to 2.3.0. Fixes: #1411 Signed-off-by: Hui Zhu <teawater@hyper.sh>
This commit is contained in:
parent
432eda0f83
commit
7fa03902b4
@ -56,12 +56,7 @@ function install_yq() {
|
|||||||
die "Please install curl"
|
die "Please install curl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Workaround to get latest release from github (to not use github token).
|
local yq_version=2.3.0
|
||||||
# Get the redirection to latest release on github.
|
|
||||||
yq_latest_url=$(curl -Ls -o /dev/null -w %{url_effective} "https://${yq_pkg}/releases/latest")
|
|
||||||
# The redirected url should include the latest release version
|
|
||||||
# https://github.com/mikefarah/yq/releases/tag/<VERSION-HERE>
|
|
||||||
yq_version=$(basename "${yq_latest_url}")
|
|
||||||
|
|
||||||
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
||||||
curl -o "${yq_path}" -LSs ${yq_url}
|
curl -o "${yq_path}" -LSs ${yq_url}
|
||||||
|
Loading…
Reference in New Issue
Block a user