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