From 58ebf0d3a2b62dfce841db48a1c75ba5bbbf17c6 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Tue, 7 Nov 2023 13:37:46 +0100 Subject: [PATCH] Added sourcehut builds CI --- .builds/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .builds/publish.yml diff --git a/.builds/publish.yml b/.builds/publish.yml new file mode 100644 index 0000000..f1a6e3f --- /dev/null +++ b/.builds/publish.yml @@ -0,0 +1,29 @@ +image: alpine/edge +sources: + - https://git.hut.ccw.icu/~comcloudway/pages +packages: + # build dependencies + - bash + - sed + - pandoc + # deploy dependencies + - rsync +secrets: +# file containing rsync password. +# format: RSYNC_PASSWORD="" +- c092726a-e17c-4498-adbf-90cd4771b5eb +environment: + domain: "https://ccw.icu" + target: "rsync://deploy@ccw.icu:29493/pages" +tasks: + - builds: | + cd pages + bash ./build.sh $domain + - deploy: | + cd pages + set +x # hide secret + set -a # load variable from file even without export + source ~/.rsyncpass + set +a + set -x + rsync -Irtlzv ./build/* $target -- 2.38.5