blob: c81cba2d0257ae6ca8dccafd89ecd91363e6f9a3 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
image: alpine/latest
packages:
- curl
- build-base
- firefox
- make
- npm
- tar
- gzip
- git
- rsync
sources:
- https://git.sr.ht/~gabrielgio/genpass
secrets:
- 008c4f67-b864-47f8-9790-cd32f2ae8516
environment:
build: builds@gabrielgio.me
site: genpass.gabrielgio.me/
artifact: artifacts.gabrielgio.me/archive/genpass/
version: 0.1.0
tasks:
- rustup: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y
source $HOME/.cargo/env
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- test: |
source $HOME/.cargo/env
cd genpass
make test
- archive: |
cd genpass
git archive \
-o genpass-$version.tar.gz \
--prefix=genpass-$version/ HEAD
- deploy_site: |
source $HOME/.cargo/env
cd genpass
make
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP public/* $build:/var/www/$site
- deploy_archive: |
cd genpass
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP *.tar.* $build:/var/www/$artifact
|