Update file .gitlab-ci.yml

This commit is contained in:
2024-12-10 15:10:37 +00:00
parent 9e5f48a293
commit 18f57eabef

View File

@@ -4,6 +4,12 @@ stages:
deploy_timelapse: deploy_timelapse:
stage: deploy stage: deploy
script: script:
- ssh kerboul@cynosure "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh" - apt-get update && apt-get install -y openssh-client
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan 172.17.0.1 >> ~/.ssh/known_hosts
- ssh kerboul@172.17.0.1 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh"
only: only:
- main - main