From c585fd8e8170563d9ddbf9e4e6106895cc1756e9 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Tue, 9 Jan 2024 19:17:14 +0100 Subject: build.yml: deploy to my VPS --- .build.yml | 13 ++++++++----- 1 file 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 -- cgit v1.2.3-70-g09d2