aboutsummaryrefslogtreecommitdiff
path: root/build.yml
blob: 60231ccc83a4575430965a3be87f379aca5c1a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
image: alpine/latest
packages:
  - rsync

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

environment:
  build: builds@gabrielgio.me
  artifact: artifacts.gabrielgio.me/archive/tres/
  version: 0.1.0

tasks:
  - archive: |
      cd tres
      git archive \
          -o tres-$version.tar.gz \
          --prefix=tres-$version/ HEAD
  - deploy_archive: |
      cd tres
      sshopts="ssh -o StrictHostKeyChecking=no"
      rsync --mkpath --rsh="$sshopts" -rP *.tar.* $build:/var/www/$artifact