diff --git a/.github/workflows/ssh cobranzas qa.yml b/.github/workflows/ssh cobranzas qa.yml new file mode 100644 index 0000000..5424116 --- /dev/null +++ b/.github/workflows/ssh cobranzas qa.yml @@ -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