aboutsummaryrefslogtreecommitdiff
path: root/build.yml
blob: 7a3ba59e7c1acf24cb30bf1a61ac25e89f454302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
image: alpine/3.19
repositories:
  gabrielgio.me: >
    https://artifacts.gabrielgio.me/repo/v3.19/
    https://artifacts.gabrielgio.me/repo/mail%40gabrielgio.me-62ddc4dc.rsa.pub
    mail@gabrielgio.me-62ddc4dc.rsa.pub
packages:
  - openssl
  - rsync
  - alpine-sdk
  - minify
  - apkdoc
environment:
  remote: builds@gabrielgio.me
  remote_path: /var/www/artifacts.gabrielgio.me/repo/
  packages: []
sources:
  - https://git.sr.ht/~gabrielgio/apkbuilds
secrets:
  - 008c4f67-b864-47f8-9790-cd32f2ae8516
  - df9d57f4-43bb-4084-a748-dbf02848bdd0
  - d8a9e8ed-cdb0-4e0e-9238-361acbe8611f
tasks:
  - setup: |
      cd apkbuilds 
      ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa
  - build: |
      cd apkbuilds
      ./pkgkit build -cu "${packages[@]}"
  - deploy: |
      cd apkbuilds
      ./pkgkit upload "$remote" "$remote_path" "${packages[@]}"
  - doc: |
      cd apkbuilds
      sshopts="ssh -o StrictHostKeyChecking=no"
      apkdoc -u "https://artifacts.gabrielgio.me/repo/v3.19/x86_64/APKINDEX.tar.gz" -f docs/index.html -o index.html
      minify -o index.html index.html
      rsync --rsh="$sshopts" -rP index.html $remote:/var/www/apkdoc.gabrielgio.me/