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