feat(install-deps): Ajoute déploiement en production

This commit is contained in:
Serreau Jovann
2025-07-17 11:13:05 +02:00
parent 3b4d1e6b5e
commit 3019b5f163

View File

@@ -127,3 +127,17 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
deploy:
name: 🚀 Deploy to Production
runs-on: self-hosted
needs: [test]
steps:
- name: Deploy with SSH & Ansible
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /var/www/mainframe/app && git pull && nohup sh ./update.sh