Compare commits

...

2 commits

Author SHA1 Message Date
dd1c74999d
add release job
Some checks failed
/ release-build (push) Successful in 13m0s
/ release-deploy (push) Successful in 33s
/ release-create (push) Failing after 31s
2024-08-22 09:52:49 -04:00
00ab9d069e
get deploy qubes_rel from GITHUB_REF_NAME 2024-08-22 09:50:38 -04:00
2 changed files with 22 additions and 10 deletions

View file

@ -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"

View file

@ -53,3 +53,23 @@ jobs:
uses: forgejo/download-artifact@v3
- name: Package deployment
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
release-create:
needs: [release-build]
runs-on: x86_64
container:
image: alpine:latest
steps:
- name: Setting up environment
run: apk add nodejs curl findutils git gawk
- name: Package download
uses: forgejo/download-artifact@v3
- name: Release creation
uses: actions/forgejo-release@v2.3.1
with:
direction: upload
url: https://api.ayakael.net
repo: ayakael/qubes-builder-alpine
token: "${{ secrets.FORGE_REPO_TOKEN }}"
release-dir: ./package
release-notes: "For download of template through DNF, please go to https://ayakael.net/forge/-/packages/rpm/qubes-template-alpine320"