From e4d27518c01c698370ed5836276f587f61fc76be Mon Sep 17 00:00:00 2001 From: kerboul Date: Wed, 11 Dec 2024 14:18:57 +0000 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index af61e93..6f9cccf 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,7 +14,11 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa + # Remove old key and add the correct one for gitea.kerboul.me + ssh-keygen -R gitea.kerboul.me || true + ssh-keyscan -H gitea.kerboul.me >> ~/.ssh/known_hosts + # Add key for the deployment server ssh-keyscan -H 192.168.1.87 >> ~/.ssh/known_hosts - name: Execute update_timelapse script - run: ssh kerboul@192.168.1.87 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" + run: ssh kerboul@192.168.1.87 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" \ No newline at end of file