Skip to content

ssh cobranzas qa.yml #1

ssh cobranzas qa.yml

ssh cobranzas qa.yml #1

name: ssh cobranzas qa
on:
push:
branches:
- maicol-cobranzas-qa
env:
SSH_PRIVATE_KEY: ${{ secrets.PEM_MICROSERVICIOS }}
REMOTE_USER: ${{ secrets.USERS_COBRANZAS }}
REMOTE_HOST: ${{ secrets.IP_COBRANZAS_QA }}
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/cobranzas_qa || true