diff options
author | Adam Stück <adam@adast.dk> | 2024-01-09 19:17:14 +0100 |
---|---|---|
committer | Adam Stück <adam@adast.dk> | 2024-01-09 22:21:41 +0100 |
commit | c585fd8e8170563d9ddbf9e4e6106895cc1756e9 (patch) | |
tree | d404ee6d26cde6985cbdd573436f20c12089d794 | |
parent | 36372ed00c2d74a81ad0eecea97df0f87513f2c5 (diff) |
build.yml: deploy to my VPS
-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 |