diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-14 21:04:20 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-14 21:09:35 +0200 |
commit | 307af8fd5a3e74ebcb64ac5bbe57493b59ead233 (patch) | |
tree | d7f1e97a46713925041a6fa4de4dab5694529c7c /build.yml | |
parent | 6d706f14b057e25b4b116ed1ee8c4db4b89454ab (diff) | |
download | apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.gz apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.bz2 apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.zip |
feat: shamelessly copy pkgkit from sr.ht-apkbuilds
Copy some code from sourcehut's alpine build[0] to build my own
packages.
[0]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
Diffstat (limited to 'build.yml')
-rw-r--r-- | build.yml | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -9,9 +9,9 @@ packages: - rsync - alpine-sdk environment: - deploy: builds@gabrielgio.me - target: artifacts.gabrielgio.me/repo/ - packages: ["genpass", "midr"] + remote: builds@gabrielgio.me + remote_path: /var/www/artifacts.gabrielgio.me/repo/ + packages: [] sources: - https://git.sr.ht/~gabrielgio/apkbuilds secrets: @@ -19,14 +19,12 @@ secrets: - df9d57f4-43bb-4084-a748-dbf02848bdd0 tasks: - setup: | - echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf + cd apkbuilds + ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa - build: | cd apkbuilds - for pkg in "${packages[@]}"; do - cd "$pkg" - abuild -r - cd .. - done + ./pkgkit build -cu "${packages[@]}" - deploy: | - sshopts="ssh -o StrictHostKeyChecking=no" - rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target + cd apkbuilds + echo "StrictHostKeyChecking=no" >> ~/.ssh/config + ./pkgkit upload "$remote" "$remote_path" "${packages[@]}" |