A .builds/publish.yml => .builds/publish.yml +29 -0
@@ 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="<yourpassword>"
+- 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