aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 5292e3c14fe071ca2dcdb5f2a83a1072fb26b622 (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
image: alpine/latest
packages:
  - curl
  - build-base
  - firefox
  - make
  - npm

secrets:
  - 008c4f67-b864-47f8-9790-cd32f2ae8516

environment:
  deploy: builds@gabrielgio.me

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
  - deploy: |
      source $HOME/.cargo/env
      cd genpass
      make
      sshopts="ssh -o StrictHostKeyChecking=no"
      rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/genpass.gabrielgio.me/