qubes-builder-alpine/.forgejo/bin/deploy.sh

16 lines
432 B
Bash
Raw Normal View History

2024-08-21 19:22:46 +00:00
#!/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
2024-08-21 19:22:46 +00:00
readonly group="qubes/$QUBES_REL"
2024-08-22 13:29:07 +00:00
readonly rpm=$(find . -name 'qubes-template-*.rpm')
2024-08-21 19:22:46 +00:00
echo "Sending $rpm to $TARGET_REPO/$group/upload"
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $rpm $TARGET_REPO/$group/upload