1image: alpine/latest
2packages:
3 - rsync
4 - go
5
6sources:
7 - https://git.sr.ht/~gabrielgio/s4o
8
9secrets:
10 - 008c4f67-b864-47f8-9790-cd32f2ae8516
11
12environment:
13 deploy: builds@gabrielgio.me
14 target: artifacts.gabrielgio.me/s4o/
15 version: v0.1.0
16
17tasks:
18 - archive: |
19 cd s4o
20 git archive \
21 -o s4o-$version.tar.gz \
22 --prefix=s4o-$version/ HEAD
23
24 - deploy: |
25 cd s4o
26 sshopts="ssh -o StrictHostKeyChecking=no"
27 rsync --rsh="$sshopts" -rP *.tar.* $deploy:/var/www/$target