Added route to request desc file; updated builder for new route (fixes #118)

This commit is contained in:
Jef Roosens 2022-04-09 12:23:54 +02:00
parent 8b2900d7f3
commit ebe01c2d44
Signed by untrusted user: Jef Roosens
GPG key ID: 2619CD13516CF9C4
2 changed files with 11 additions and 3 deletions

View file

@ -93,7 +93,7 @@ fn build(conf Config) ? {
'source PKGBUILD',
// The build container checks whether the package is already
// present on the server
'curl --head --fail $conf.address/$repo.repo/$build_arch/\$pkgname-\$pkgver-\$pkgrel-${build_arch}.pkg.tar.zst && exit 0',
'curl --head --fail $conf.address/$repo.repo/$build_arch/\$pkgname-\$pkgver-\$pkgrel && exit 0',
'MAKEFLAGS="-j\$(nproc)" makepkg -s --noconfirm --needed && for pkg in \$(ls -1 *.pkg*); do curl -XPOST -T "\$pkg" -H "X-API-KEY: \$API_KEY" $conf.address/$repo.repo/publish; done',
]