forgejo-deb/.ci-forgejo-apt.sh

9 lines
253 B
Bash
Raw Permalink Normal View History

2023-06-23 19:13:00 +10:00
#!/bin/sh
2023-07-03 02:05:42 +10:00
EXIT_TOTAL=0
2023-06-23 19:13:00 +10:00
for deb in "$@" ; do
2023-06-23 19:49:19 +10:00
curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload
2023-07-03 03:42:14 +10:00
EXIT_TOTAL=$(($EXIT_TOTAL+$?))
2023-06-23 19:13:00 +10:00
done
2023-07-03 02:05:42 +10:00
exit $EXIT_TOTAL