diff options
-rw-r--r-- | .build.yml | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |