From 30e2949a469656a8f1d490a4af682e6da694903b Mon Sep 17 00:00:00 2001 From: kerboul Date: Wed, 11 Dec 2024 14:41:49 +0000 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5e41903..a728665 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,14 +30,12 @@ jobs: # Étape 2: Test SSH Connection - name: Test SSH connection run: | - # Testez la connexion SSH avec l'hôte distant ssh -v kerboul@192.168.1.87 "echo 'Connection successful!'" # Étape 3: Ajouter une action qui utilise la connexion SSH - - name: Run remote command + - name: Update Frontend (Restarting Only Frontend) run: | - # Exemple de commande distante exécutée sur le serveur distant via SSH - ssh kerboul@192.168.1.87 "ls -la /home/kerboul" + ssh kerboul@192.168.1.87 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" # Étape 4: Nettoyage (optionnel) - name: Clean up SSH keys