Skip to content

Commit

Permalink
Update pagos-qa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Francotorrico authored Apr 16, 2024
1 parent 5b8a8ef commit 5ec3fa6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pagos-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ jobs:
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
cd /opt/ms-pagos-qa-app
docker rmi pagosimagen || true
docker build -t pagosimagen .
cd /opt/ms-pagos-qa-app
if docker images -q pagosimagen; then
docker rmi pagosimagen
fi
docker build -t pagosimagen .
# Autenticación en DockerHub
Expand Down Expand Up @@ -121,7 +123,7 @@ jobs:
echo "Contenedor existente detenido."
fi
# Ejecutar el contenedor Docker después de asegurarse de que la imagen esté disponible
docker run -d -p 3000:3000 pagosimagen
docker run -d -p 3000:3000 --name pagosimagen pagosimagen
# Verificar si el contenedor está en ejecución
if docker ps | grep -q "pagosimagen"; then
echo "El contenedor está en ejecución."
Expand Down

0 comments on commit 5ec3fa6

Please sign in to comment.