From 8d5c43cb662198240eaa0d8a6de885b732818370 Mon Sep 17 00:00:00 2001 From: luaneko Date: Tue, 3 Dec 2024 18:27:52 +1100 Subject: [PATCH] Ignore host key verification --- .gitea/workflows/push.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index a8f23bc..9635441 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -10,6 +10,7 @@ jobs: runs-on: luare env: DEPLOY_HOST: lilac.a.lua.re + SSH_OPTS: -o ForwardAgent=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null steps: - name: Checkout @@ -25,4 +26,4 @@ jobs: eval "$(ssh-agent -s)" trap 'eval $(ssh-agent -k)' EXIT ssh-add - <<< "${{ secrets.SSH_KEY }}" - rsync -avzh --delete 'dist/' "caddy@$DEPLOY_HOST:sites/lua.re/" + rsync -avzhe "ssh $SSH_OPTS" --delete 'dist/' "caddy@$DEPLOY_HOST:sites/lua.re/"