From 00ab9d069e4d1fa4af8bd2e9b875a41b02a26122 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 22 Aug 2024 09:50:38 -0400 Subject: [PATCH] get deploy qubes_rel from GITHUB_REF_NAME --- .forgejo/bin/deploy.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.forgejo/bin/deploy.sh b/.forgejo/bin/deploy.sh index 7d2ce82..b258316 100755 --- a/.forgejo/bin/deploy.sh +++ b/.forgejo/bin/deploy.sh @@ -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"