summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2024-01-09 17:16:45 -0700
committercrystal <crystal@noreply.codeberg.org>2024-01-09 17:16:45 -0700
commit4cd33cdfa49f4197c19c773b15b90f920baa4afc (patch)
treecc3672e63a1538bb793d6e0fcf4aaa1dbe00ce5b
parent706a70b56396f00f1ab8a9c19e544bc42d18c11a (diff)
Revert "[temp] download hardcoded tag"
This reverts commit b2c5780397b695b4b357f3e5c71919f3eb062fad.
-rwxr-xr-x.ci-make.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/.ci-make.sh b/.ci-make.sh
index 77192e6..6155b73 100755
--- a/.ci-make.sh
+++ b/.ci-make.sh
@@ -44,8 +44,7 @@ case "$1" in
;;
"download-binary")
if [ $CI_COMMIT_TAG ] ; then
- 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_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | 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_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