apkbuilds @ 0b58e2bbe81290d43b0fa75d7d515d4155f4f139

 1image: alpine/3.18
 2repositories:
 3  gabrielgio.me: >
 4    https://artifacts.gabrielgio.me/repo/v3.18/
 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
11  - pandoc
12  - apkdoc
13environment:
14  remote: builds@gabrielgio.me
15  remote_path: /var/www/artifacts.gabrielgio.me/repo/
16  packages: []
17sources:
18  - https://git.sr.ht/~gabrielgio/apkbuilds
19secrets:
20  - 008c4f67-b864-47f8-9790-cd32f2ae8516
21  - df9d57f4-43bb-4084-a748-dbf02848bdd0
22  - d8a9e8ed-cdb0-4e0e-9238-361acbe8611f
23tasks:
24  - setup: |
25      cd apkbuilds 
26      ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa      
27  - build: |
28      cd apkbuilds
29      ./pkgkit build -cu "${packages[@]}"      
30  - deploy: |
31      cd apkbuilds
32      ./pkgkit upload "$remote" "$remote_path" "${packages[@]}"      
33  - doc: |
34      cd apkbuilds
35      sshopts="ssh -o StrictHostKeyChecking=no"
36      apkdoc -url "https://artifacts.gabrielgio.me/repo/v3.18/x86_64/APKINDEX.tar.gz"
37      pandoc -s --include-in-header=docs/bamboo.min.css -s index.md --metadata title="Gabriel's apk repo" -o index.html
38      rsync --rsh="$sshopts" -rP index.html $remote:/var/www/apkdoc.gabrielgio.me/      
39