fix apt upload script

This commit is contained in:
crystal 2023-06-23 03:49:19 -06:00
parent b27f378b5e
commit 443f51525b
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
for deb in "$@" ; do 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 curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload
exit $?
done done

View file

@ -6,7 +6,7 @@ when:
variables: variables:
- &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest' - &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest'
- &golang_image 'golang:1.20-bullseye' - &golang_image 'golang:1.20-bullseye'
- &forgejo_test_image 'codeberg.org/forgejo/test_env:1.19' - &forgejo_test_image 'codeberg.org/forgejo/test_env:1.20'
- &nodejs_image 'node:lts' - &nodejs_image 'node:lts'
- &bin_dl_image 'sc.cryxtal.org/ci-img/bin-dl:latest' - &bin_dl_image 'sc.cryxtal.org/ci-img/bin-dl:latest'
- &deb_build_image 'sc.cryxtal.org/ci-img/dh:bullseye' - &deb_build_image 'sc.cryxtal.org/ci-img/dh:bullseye'
@ -333,4 +333,4 @@ pipeline:
secrets: [ cfo_api_key ] secrets: [ cfo_api_key ]
commands: commands:
- export FORGEJO_KEY=$CFO_API_KEY - export FORGEJO_KEY=$CFO_API_KEY
- ./.ci-forgejo-apt.sh "*.deb" - ./.ci-forgejo-apt.sh *.deb