Skip to content

Commit

Permalink
Create ssh_clientes_qa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RominaCalaniCruz authored Apr 10, 2024
1 parent f676f3c commit f0fbaf9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ssh_clientes_qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ssh clientes qa

on:
push:
branches:
- romina-clientes-qa
env:
SSH_PRIVATE_KEY: ${{ secrets.PEM_CLIENTES_QA }}
REMOTE_USER: ec2-user
REMOTE_HOST: ${{ secrets.IP_CLIENTES_QA }}
APP_NAME: app.js

jobs:
conexion-ssh:
name: conexion por ssh
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Conexion por ssh mas comando
uses: appleboy/ssh-action@master

with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
sudo rm -rf /opt/clientes_qa || true

0 comments on commit f0fbaf9

Please sign in to comment.