From bb6a9a0d92039d4fa0fc592c667a9cba9b4c007a Mon Sep 17 00:00:00 2001 From: lauralani Date: Mon, 27 Feb 2023 11:55:09 +0100 Subject: [PATCH] update ci and change ssh keyscan stuff --- .builds/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.builds/deploy.yml b/.builds/deploy.yml index c46cff0..292e027 100644 --- a/.builds/deploy.yml +++ b/.builds/deploy.yml @@ -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