~bfiedler/website

4711448cceccebb65a2abd850ebf208575430ef7 — Ben Fiedler 11 months ago 81beace
Add CI
1 files changed, 22 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +22 -0
@@ 0,0 1,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/