release candidate tag
This commit is contained in:
parent
f8468757d0
commit
b40c337a0d
|
@ -4,6 +4,7 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec
|
||||||
CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status
|
CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status
|
||||||
CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending
|
CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending
|
||||||
CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending
|
CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending
|
||||||
|
BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"submodule-build")
|
"submodule-build")
|
||||||
|
@ -44,7 +45,7 @@ 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)
|
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_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_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 --content-disposition $CI_RELEASE_BINARY_URL
|
wget --content-disposition $CI_RELEASE_BINARY_URL
|
||||||
|
|
|
@ -316,7 +316,7 @@ pipeline:
|
||||||
- "*.deb.sha256"
|
- "*.deb.sha256"
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: sc_api_key
|
from_secret: sc_api_key
|
||||||
prerelease: false
|
prerelease: true
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
@ -331,7 +331,7 @@ pipeline:
|
||||||
- "*.deb.sha256"
|
- "*.deb.sha256"
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: cb_api_key
|
from_secret: cb_api_key
|
||||||
prerelease: false
|
prerelease: true
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
@ -341,7 +341,7 @@ pipeline:
|
||||||
group: upload
|
group: upload
|
||||||
environment:
|
environment:
|
||||||
FORGEJO_SITE: https://code.forgejo.org
|
FORGEJO_SITE: https://code.forgejo.org
|
||||||
FORGEJO_OWNER: crystal
|
FORGEJO_OWNER: crystal-experimental
|
||||||
DEBIAN_DIST: bullseye
|
DEBIAN_DIST: bullseye
|
||||||
DEBIAN_COMPONENT: forgejo
|
DEBIAN_COMPONENT: forgejo
|
||||||
secrets: [ cfo_api_key ]
|
secrets: [ cfo_api_key ]
|
||||||
|
|
Loading…
Reference in a new issue