Skip to content

Commit

Permalink
ssh cobranzas qa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhay2008 authored Apr 11, 2024
1 parent eddcc4b commit c0a26f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ssh cobranzas qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit c0a26f8

Please sign in to comment.