~bfiedler/website

ref: 4711448cceccebb65a2abd850ebf208575430ef7 website/.build.yml -rw-r--r-- 533 bytes
4711448c — Ben Fiedler Add CI 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
image: debian/unstable
packages:
  - hugo
  - rsync
sources:
  - https://git.sr.ht/~bfiedler/website
environment:
  user: deploy
  webhost: bfiedler.vsos.ethz.ch
  hostkey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMGkNr+BSfvo8i0+XGyktBac0t+IDg2J8g2HazyQuCVN
secrets:
  - e7266734-d2dc-46dc-a155-4225c901c280
tasks:
  - build: |
      cd website
      hugo --minify
  - upload: |
      mkdir -p $HOME/.ssh
      echo $webhost $hostkey > $HOME/.ssh/known_hosts
      cd website
      rsync -rdP public/ $user@$webhost:/var/www/3fx.ch/