Update ci_pagos_dev.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SSH a pagos | |
on: | |
push: | |
branches: | |
- franco-pagos | |
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_DEV }} | |
REMOTE_USER: ec2-user | |
REMOTE_HOST: ${{ secrets.IP_PAGOS_DEV }} | |
APP_NAME: app.js | |
with: | |
host: ${{ env.REMOTE_HOST }} | |
username: ${{ env.REMOTE_USER }} | |
key: ${{ env.SSH_PRIVATE_KEY }} | |
script: | | |
sudo rm -rf /opt/pagos || true |