mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +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"
|
||||
fi
|
||||
|
||||
# Workaround to get latest release from github (to not use github token).
|
||||
# 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_version=2.3.0
|
||||
|
||||
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
||||
curl -o "${yq_path}" -LSs ${yq_url}
|
||||
|
Loading…
Reference in New Issue
Block a user