qubes-builder-alpine/.forgejo/bin/deploy.sh
Antoine Martin aceefb7462
Some checks failed
/ release-build (push) Successful in 13m11s
/ release-deploy (push) Failing after 31s
/ release-create (push) Failing after 31s
fix deploy target and add bash to release
2024-08-22 10:13:28 -04:00

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