summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2023-06-23 03:49:19 -0600
committercrystal <crystal@noreply.codeberg.org>2023-06-23 03:49:19 -0600
commit443f51525bb7c242cbe4ca6940d08d1d9f8a1ae5 (patch)
treea949db4bf62155177b43168abf99288b1cbbde4d
parentb27f378b5ebaae416bd17982e5aefa76bfacbf83 (diff)
fix apt upload script
-rwxr-xr-x.ci-forgejo-apt.sh3
-rw-r--r--.crystalintegration.yml4
2 files changed, 4 insertions, 3 deletions
diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh
index d474e28..27983c7 100755
--- a/.ci-forgejo-apt.sh
+++ b/.ci-forgejo-apt.sh
@@ -1,5 +1,6 @@
#!/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
+ 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
diff --git a/.crystalintegration.yml b/.crystalintegration.yml
index b7bef8e..c54e4e2 100644
--- a/.crystalintegration.yml
+++ b/.crystalintegration.yml
@@ -6,7 +6,7 @@ when:
variables:
- &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest'
- &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'
- &bin_dl_image 'sc.cryxtal.org/ci-img/bin-dl:latest'
- &deb_build_image 'sc.cryxtal.org/ci-img/dh:bullseye'
@@ -333,4 +333,4 @@ pipeline:
secrets: [ cfo_api_key ]
commands:
- export FORGEJO_KEY=$CFO_API_KEY
- - ./.ci-forgejo-apt.sh "*.deb"
+ - ./.ci-forgejo-apt.sh *.deb