From d63f3cf0f4482ec63dac6a22636614594c2a0cba Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:30:14 +0200 Subject: [PATCH] Use direct link to download latest yq version (#5689) --- images/linux/scripts/installers/yq.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/images/linux/scripts/installers/yq.sh b/images/linux/scripts/installers/yq.sh index 0f7089b82..3c9138736 100644 --- a/images/linux/scripts/installers/yq.sh +++ b/images/linux/scripts/installers/yq.sh @@ -3,14 +3,8 @@ # Source the helpers for use with the script source $HELPER_SCRIPTS/install.sh -YQ_BINARY=yq_linux_amd64 - -# As per https://github.com/mikefarah/yq#wget -YQ_URL=$(get_github_package_download_url "mikefarah/yq" "endswith(\"$YQ_BINARY.tar.gz\")") -echo "Downloading latest yq from $YQ_URL" - -download_with_retries "$YQ_URL" "/tmp" "${YQ_BINARY}.tar.gz" -tar xzf "/tmp/${YQ_BINARY}.tar.gz" -C "/tmp" -mv /tmp/${YQ_BINARY} /usr/bin/yq +YQ_URL="https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" +download_with_retries "$YQ_URL" "/usr/bin" "yq" +chmod +x /usr/bin/yq invoke_tests "Tools" "yq"