Skip to content

Commit

Permalink
Adiciona comandos stop e rm antes de run
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertoJNJ committed Feb 9, 2024
1 parent 28c9b05 commit 35dff7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ jobs:

run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOST_NAME} 'docker run -d --name logistock -p 80:8080 gilbertojnj/logistock-image:latest'
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOST_NAME} '
docker stop logistock || true
docker rm logistock || true
docker run -d --name logistock -p 80:8080 gilbertojnj/logistock-image:latest'

0 comments on commit 35dff7c

Please sign in to comment.