@@ -14,11 +14,7 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.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
|
ssh-keyscan -H 192.168.1.87 >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Execute update_timelapse script
|
- 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user