[temp] download hardcoded tag
This commit is contained in:
parent
687c078318
commit
b2c5780397
|
@ -46,7 +46,8 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
"download-binary")
|
"download-binary")
|
||||||
if [ $CI_COMMIT_TAG ] ; then
|
if [ $CI_COMMIT_TAG ] ; then
|
||||||
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64)
|
echo "WARNING: Using hardcoded tag: v1.20.6-1"
|
||||||
|
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/v1.20.6-1 | jq -c '.assets[]' | grep linux-amd64)
|
||||||
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
|
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
|
||||||
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
|
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
|
||||||
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
|
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
|
||||||
|
|
Loading…
Reference in a new issue