~fluix/fluix.one

9c842b9cf39dfb7af7a6c58f74bbc4c7cd625909 — Steven Guikal 3 months ago 3048160
Add automatic build and deployment
1 files changed, 19 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +19 -0
@@ 0,0 1,19 @@
image: alpine/edge
packages:
  - rsync
  - hugo
secrets:
  - a3a68105-19cd-460d-a03f-6414da055b41
sources:
  - git@git.sr.ht:~fluix/fluix.dev
tasks:
  - build: |
      cd fluix.dev
      hugo --minify
  - deploy: |
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      rsync -r --del fluix.dev deploy@fluix.dev:/srv/
triggers:
  - action: email
    condition: failure
    to: Steven Guikal <builds-void@fluix.dev>