feat(install-deps): Ajoute déploiement en production
This commit is contained in:
14
.github/workflows/install-deps.yml
vendored
14
.github/workflows/install-deps.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user