aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.build.yml b/.build.yml
index 6d66adf..068a5b6 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,22 +1,25 @@
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
-- hut
-- rsync
+ - hut
+ - rsync
+secrets:
+ - 4c5cebdb-c744-4dfb-a69a-30b9bdfe048c
sources:
- https://git.sr.ht/~adamski/adast.dk
- https://git.sr.ht/~bt/smu
environment:
- site: adast.dk
+ deploy: srht@adast.dk
mirror: adamski.srht.site
tasks:
- smu: |
cd smu
sudo make install
- package: |
- cd $site
+ cd adast.dk
make build
tar -C build -cvz . > ../site.tar.gz
- upload: |
- hut pages publish -d $site site.tar.gz
+ sshopts="ssh -o StrictHostKeyChecking=no"
+ rsync --rsh="$sshopts" -ruz adast.dk/build/ $deploy:/var/www/adast.dk
hut pages publish -d $mirror site.tar.gz