1image: alpine/3.15
2packages:
3 - openssl
4 - rsync
5 - alpine-sdk
6environment:
7 deploy: builds@gabrielgio.me
8 target: artifacts.gabrielgio.me/repo/
9 packages: ["midr", "genpass"]
10sources:
11 - https://git.sr.ht/~gabrielgio/apkbuilds
12secrets:
13 - 008c4f67-b864-47f8-9790-cd32f2ae8516
14 - df9d57f4-43bb-4084-a748-dbf02848bdd0
15tasks:
16 - setup: |
17 echo "PACKAGER_PRIVKEY=\"/home/build/.abuild/mail@gabrielgio.me-62ddc4dc.rsa\"" > ~/.abuild/abuild.conf
18 - build: |
19 cd apkbuilds/"${packages[@]}"
20 abuild -r
21 - deploy: |
22 sshopts="ssh -o StrictHostKeyChecking=no"
23 rsync --rsh="$sshopts" -rP ~/packages/apkbuilds/ $deploy:/var/www/$target
24