-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.13 KB
/
pagos_qa_ssh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }}