22 lines
496 B
Bash
Executable file
22 lines
496 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# shellcheck disable=SC3040
|
|
set -eu -o pipefail
|
|
|
|
readonly REPOS="backports user"
|
|
readonly BASEBRANCH=$GITHUB_BASE_REF
|
|
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
|
|
|
|
echo "Sending $rpm to $TARGET_REPO/$group/upload"
|
|
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $rpm $TARGET_REPO/$group/upload
|
|
|