From 9c842b9cf39dfb7af7a6c58f74bbc4c7cd625909 Mon Sep 17 00:00:00 2001 From: Steven Guikal Date: Mon, 11 Jan 2021 14:27:06 -0500 Subject: [PATCH] Add automatic build and deployment --- .build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..0af2798 --- /dev/null +++ b/.build.yml @@ -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 -- 2.45.2