aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.dk>2024-01-09 19:17:14 +0100
committerAdam Stück <adam@adast.dk>2024-01-09 22:21:41 +0100
commitc585fd8e8170563d9ddbf9e4e6106895cc1756e9 (patch)
treed404ee6d26cde6985cbdd573436f20c12089d794
parent36372ed00c2d74a81ad0eecea97df0f87513f2c5 (diff)
build.yml: deploy to my VPS
-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