~comcloudway/pages

58ebf0d3a2b62dfce841db48a1c75ba5bbbf17c6 — Jakob Meier 10 months ago 927f128
Added sourcehut builds CI
1 files changed, 29 insertions(+), 0 deletions(-)

A .builds/publish.yml
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