9 Commits

Author SHA1 Message Date
Henrik Grimler
0c4f47e713 Revert "revertme,ci(aptly_api): hardcode proxy-ip to use for deb uploads"
More proper fix by @agnostic-apollo in a3e68e2b89 and 3b76d37dce.

This reverts commit 1615ccc894.
2022-06-18 19:08:38 +02:00
agnostic-apollo
3b76d37dce enhance(scripts): Add support for CURL_ADDITIONAL_OPTIONS in aptly_api functions 2022-06-18 17:39:12 +05:00
Henrik Grimler
1615ccc894 revertme,ci(aptly_api): hardcode proxy-ip to use for deb uploads
Some of the IPs of fosshost's proxy do not work (see
termux/termux-packages#11007), so stick to using one that we know work
until that is fixed.

Suggested by agnostic-apollo.
2022-06-18 11:24:55 +02:00
Yaksh Bariya
dcaf44f95b ci: sleep only when aptly_add_to_repo returns with status code 000
It is just a waste of time to sleep for 3 minutes when the packages are
successfully added and aptly returns 200 http code
2022-04-16 14:07:17 +05:30
Yaksh Bariya
c4ab7bcfd0 attempt2: Fix repository upload problems
Earlier in 5b8b15e7aa, I had configured
our upload scripts to treat failure of `aptly_add_to_repo` as failure to publish
packages at all. However it won't work, since even if all debs are
uploaded, and aptly_add_to_repo is called, debs are moved from temporary
directory to the repository. The proxy may drop connection during this
moment due to stale connection. And just after that we call
aptly_delete_dir which will delete the temporary directory. On the
server side, aptly will however continue to move debs from temporary
directory. Repository is published, but since the temporary directory is
removed during the transaction, the transaction never completely
succeeds. So only some of the debs are uploaded practically. This is now
fixed by adding a sleep of 180s (should be more than enough for all
stuff)
2022-04-14 17:26:22 +05:30
Yaksh Bariya
5b8b15e7aa fixup(ci:upload): Treat failure to add debs to repository as error 2022-04-14 11:45:17 +05:30
Henrik Grimler
d0bb3a9273 aptly_api: need to use double quotes in json string
Should hopefully explain error in package publish step..
2022-03-13 14:35:54 +01:00
Henrik Grimler
a9befe63d2 aptly_api: fix expansion of GPG_PASSPHRASE when publishing repo 2022-03-13 14:02:52 +01:00
Henrik Grimler
e7f3a436ae CI: packages.yml: refactor, move aptly api functions to scripts/ 2022-03-13 11:12:39 +01:00