get deploy qubes_rel from GITHUB_REF_NAME
This commit is contained in:
parent
72a444f4c2
commit
00ab9d069e
1 changed files with 2 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue