get deploy qubes_rel from GITHUB_REF_NAME

This commit is contained in:
Antoine Martin 2024-08-22 09:50:38 -04:00
parent 72a444f4c2
commit 00ab9d069e
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -4,18 +4,10 @@
set -eu -o pipefail
readonly REPOS="backports user"
readonly BASEBRANCH=$GITHUB_BASE_REF
readonly QUBES_REL=$( echo $GITHUB_REF_NAME | awk -F '-' '{print $2}')
readonly TARGET_REPO=$CI_ALPINE_REPO
get_qubes_release() {
case $GITHUB_BASE_REF in
r*) echo $GITHUB_BASE_REF;;
main) echo r4.3;;
esac
}
readonly QUBES_REL=$(get_qubes_release)
readonly group=qubes/$QUBES_REL
readonly group="qubes/$QUBES_REL"
readonly rpm=$(find . -name 'qubes-template-*.rpm')
echo "Sending $rpm to $TARGET_REPO/$group/upload"