apkbuilds @ 5ae86d77daf952ef6fb5c48128d23d83b60d5119

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