From 79f17f2649a46b418f7d4947ae9d139c6cc208fe Mon Sep 17 00:00:00 2001 From: Kerboul Date: Fri, 25 Oct 2024 14:05:21 +0200 Subject: [PATCH] chore: update test.yml --- .gitea/workflows/test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 298525a..464d7fd 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -6,7 +6,7 @@ on: - main jobs: - site-deploy: + backend-deploy: runs-on: ubuntu-latest steps: @@ -21,6 +21,12 @@ jobs: password: ${{ secrets.SSH_PASSWORD }} script: | echo "CONNEXION REUSSIE" - echo "Envoi de la commande de déploiement via SSH" - ssh mikoshi "cd /home/timelapse/backend && git pull origin main && docker restart timelapse-api" - echo "Commande envoyée avec succès" \ No newline at end of file + + - name: Update backend + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + password: ${{ secrets.SSH_PASSWORD }} + script: | + ssh mikoshi "cd /home/timelapse/backend && git pull origin main && docker restart timelapse-api" \ No newline at end of file