s4o @ 478a43f5aac26860669d16be34c712f05a747141

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