1image: alpine/latest
2packages:
3 - openssl
4 - rsync
5 - alpine-sdk
6environment:
7 remote: builds@gabrielgio.me
8 remote_path: /var/www/artifacts.gabrielgio.me/repo/
9 packages: []
10sources:
11 - https://git.sr.ht/~gabrielgio/apkbuilds
12secrets:
13 - 008c4f67-b864-47f8-9790-cd32f2ae8516
14 - df9d57f4-43bb-4084-a748-dbf02848bdd0
15 - d8a9e8ed-cdb0-4e0e-9238-361acbe8611f
16tasks:
17 - setup: |
18 cd apkbuilds
19 ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa
20 - build: |
21 cd apkbuilds
22 ./pkgkit build -cu "${packages[@]}"
23 - deploy: |
24 cd apkbuilds
25 ./pkgkit upload "$remote" "$remote_path" "${packages[@]}"