Skip to content

Commit

Permalink
Merge pull request #2 from alkemyTech/franco-pagos-1
Browse files Browse the repository at this point in the history
Create pagos_ssh.yml
  • Loading branch information
Francotorrico authored Apr 3, 2024
2 parents 3001abb + 06580d8 commit 192d8b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pagos_ssh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
sudo rm -rf /opt/pagos || true

0 comments on commit 192d8b3

Please sign in to comment.