aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: d38abf1d65af20937b392daccbcefd68300e33b9 (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:
  - rsync
  - go
  - hugo
  - make

sources:
  - https://git.sr.ht/~gabrielgio/gabrielgio.me
  - https://git.sr.ht/~sircmpwn/openring

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

environment:
  deploy: builds@gabrielgio.me

tasks:
  - openring: |
      cd openring
      go build -o openring
      sudo cp openring /usr/local/bin/
  - build: |
      cd gabrielgio.me
      make
  - deploy: |
      cd gabrielgio.me
      sshopts="ssh -o StrictHostKeyChecking=no"
      rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/gabrielgio.me/