From ecc698c6ec833cafa33fa7bfd84915de065af8e1 Mon Sep 17 00:00:00 2001 From: kerboul Date: Wed, 11 Dec 2024 14:43:07 +0000 Subject: [PATCH] revert 30e2949a469656a8f1d490a4af682e6da694903b revert Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a728665..5e41903 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,12 +30,14 @@ 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: Update Frontend (Restarting Only Frontend) + - name: Run remote command run: | - ssh kerboul@192.168.1.87 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" + # Exemple de commande distante exécutée sur le serveur distant via SSH + ssh kerboul@192.168.1.87 "ls -la /home/kerboul" # Étape 4: Nettoyage (optionnel) - name: Clean up SSH keys