From 1598ea6dc97f617e418cc097dc156a7ce75f0c6f Mon Sep 17 00:00:00 2001 From: Kerboul Date: Fri, 25 Oct 2024 10:48:46 +0200 Subject: [PATCH] Update deployment script in test.yml --- .gitea/workflows/test.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index ea41dfb..dea3b20 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -10,9 +10,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Test SSH connection uses: appleboy/ssh-action@master with: @@ -21,6 +18,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/nginx && git pull origin main && docker restart timelapse-frontend" - echo "Commande envoyée avec succès" \ No newline at end of file + + - name: Update Frontend + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + password: ${{ secrets.SSH_PASSWORD }} + script: | + ssh mikoshi "cd /home/timelapse/nginx && git pull origin main && docker restart timelapse-frontend" \ No newline at end of file