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