Update deployment script in test.yml
This commit is contained in:
@@ -10,9 +10,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Test SSH connection
|
- name: Test SSH connection
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
@@ -21,6 +18,12 @@ jobs:
|
|||||||
password: ${{ secrets.SSH_PASSWORD }}
|
password: ${{ secrets.SSH_PASSWORD }}
|
||||||
script: |
|
script: |
|
||||||
echo "CONNEXION REUSSIE"
|
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"
|
- name: Update Frontend
|
||||||
echo "Commande envoyée avec succès"
|
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"
|
||||||
Reference in New Issue
Block a user