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 VERSION: 0.1.0
17 GOPROXY: direct
18 XZ_OPT: -9
19
20tasks:
21 - build: |
22 cd midr
23 git archive \
24 -o midr-${VERSION}.tar.gz \
25 --prefix=midr-${VERSION}/ HEAD
26
27 - deploy: |
28 cd midr
29 sshopts="ssh -o StrictHostKeyChecking=no"
30 rsync --rsh="$sshopts" -rP *.tar.* $deploy:/var/www/$target
31