Skip to content

Commit

Permalink
cobranzas_dev ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhay2008 authored Apr 2, 2024
1 parent 91d1c9e commit 1988a00
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cobranzas_dev ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
key: ${{ env.EC2_SSH_KEY }}
script: |
cd /opt/ms-cobranzas-dev-app
sudo git clone -b maicol_cobranzas https://${{ secrets.TOKEN_COBRANZAS }}@github.com/alkemyTech/UMSA-DevOps-T3 .
sudo git clone -b maicol_cobranzas https://${{ secrets.TOKEN_COBRANZAS }}@github.com/alkemyTech/UMSA-DevOps-T3 .
- name: Install npm packages
uses: appleboy/ssh-action@master
Expand All @@ -58,7 +58,16 @@ jobs:
cd /opt/ms-cobranzas-dev-app
sudo npm install express pm2
- name: Instalar PM2
- name: Uninstall PM2 if installed
uses: appleboy/ssh-action@master
with:
host: ${{ env.EC2_HOST }}
username: ${{ env.EC2_USERNAME }}
key: ${{ env.EC2_SSH_KEY }}
script: |
sudo npm uninstall -g pm2 || true
- name: Install PM2
uses: appleboy/ssh-action@master
with:
host: ${{ env.EC2_HOST }}
Expand Down

0 comments on commit 1988a00

Please sign in to comment.