Skip to content

Commit

Permalink
Update ci_pagos_qa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Francotorrico authored Apr 15, 2024
1 parent 4fdfc46 commit 15fb983
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci_pagos_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ jobs:
# Autenticación en DockerHub
- name: Login to DockerHub
run: echo "${{ secrets.DOCKERPAGO_TOKEN }}" | docker login -u "${{ secrets.dockerUserpago }}" --password-stdin

uses: appleboy/ssh-action@master
with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
echo "${{ secrets.DOCKERPAGO_TOKEN }}" | docker login -u "${{ secrets.dockerUserpago }}" --password-stdin
# Subir imagen a DockerHub
#- name: Push image to DockerHub
# run: docker push "${{secrets.dockerUserpago}}"/pagosimagen:latest
Expand All @@ -103,4 +108,11 @@ jobs:

# Despliegue al entorno de QA (manual)
- name: Desplegar al entorno de QA
run: echo "Presiona un botón para desplegar en QA"
if: github.event_name == 'workflow_dispatch'
uses: appleboy/ssh-action@master
with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
echo "Presiona un botón para desplegar en QA"

0 comments on commit 15fb983

Please sign in to comment.