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