Skip to content

Update pagos-qa.yml #81

Update pagos-qa.yml

Update pagos-qa.yml #81

Workflow file for this run

name: SSH pagos qa
on:
push:
branches:
- franco-pagos-qa
jobs:
ssh_job:
name: SSH Job
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Ejecutar comando SSH
uses: appleboy/ssh-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.PEM_ORG_PAGOS_QA }}
REMOTE_USER: ec2-user
REMOTE_HOST: ${{ secrets.IP_PAGOS_QA }}
APP_NAME: app.js
with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
sudo rm -rf /opt/pagos-qa || true
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_PAGOS }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_PAGOS_TOKEN }}