Update .gitea/workflows/deploy.yml

This commit is contained in:
2024-12-11 12:45:24 +00:00
parent 272f527b45
commit d5ef0c5f10

View File

@@ -9,5 +9,12 @@ jobs:
deploy_timelapse: deploy_timelapse:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
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"