15 lines
432 B
Bash
Executable file
15 lines
432 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# shellcheck disable=SC3040
|
|
set -eu -o pipefail
|
|
|
|
readonly REPOS="backports user"
|
|
readonly QUBES_REL=$( echo $GITHUB_REF_NAME | awk -F '-' '{print $2}')
|
|
readonly TARGET_REPO=$CI_RPM_REPO
|
|
|
|
readonly group="qubes/$QUBES_REL"
|
|
readonly rpm=$(find . -name 'qubes-template-*.rpm')
|
|
|
|
echo "Sending $rpm to $TARGET_REPO/$group/upload"
|
|
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $rpm $TARGET_REPO/$group/upload
|
|
|