apt repo test
This commit is contained in:
parent
a37e7517ce
commit
492b03753a
5
.ci-forgejo-apt.sh
Executable file
5
.ci-forgejo-apt.sh
Executable 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
|
|
@ -306,3 +306,16 @@ pipeline:
|
|||
skip_verify: true
|
||||
when:
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue