apt repo test

This commit is contained in:
crystal 2023-06-23 03:13:00 -06:00
parent a37e7517ce
commit 492b03753a
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
2 changed files with 18 additions and 0 deletions

5
.ci-forgejo-apt.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
for deb in "$@" ; do
curl -H "Authorization: token $FORGEJO_KEY" --upload-file $deb $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload
done

View file

@ -306,3 +306,16 @@ pipeline:
skip_verify: true skip_verify: true
when: when:
event: [ tag ] event: [ tag ]
publish-apt-repo:
image: *ci_verify_image
group: upload
environment:
FORGEJO_SITE: https://code.forgejo.org
FORGEJO_OWNER: crystal
DEBIAN_DIST: any
DEBIAN_COMPONENT: forgejo
secrets: [ cfo_api_key ]
commands:
- export FORGEJO_KEY=$CFO_API_KEY
- ./.ci-forgejo-apt.sh "*.deb"