update ci and change ssh keyscan stuff

This commit is contained in:
lauralani 2023-02-27 11:55:09 +01:00
parent 6e2f08234b
commit bb6a9a0d92

View file

@ -4,6 +4,8 @@ packages:
- rsync
repositories:
nodejs: https://deb.nodesource.com/node_18.x bullseye main 1655A0AB68576280
environment:
REMOTE: web01vp.cloud.lauka.net
secrets:
- 54755283-43f7-44a6-97fb-70db08184ff1
tasks:
@ -15,6 +17,5 @@ tasks:
npx @11ty/eleventy --input=./ --output=public
- deploy: |
cd www-lauka-net
set +x && source ~/.buildsecrets && set -x
sshopts="ssh -o StrictHostKeyChecking=no"
rsync -avh --rsh="$sshopts" --delete --chown=webadmin:caddy ./public webadmin@web01vp.cloud.lauka.net:/webroot/www.lauka.net
ssh-keyscan -t ed25519 $REMOTE >> $HOME/.ssh/known_hosts
rsync -avh --delete --chown=webadmin:caddy ./public webadmin@$REMOTE:/webroot/www.lauka.net