Skip to content

Commit

Permalink
add docker restart on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
canergulay committed Jun 21, 2024
1 parent a1e9650 commit e207f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_APP_NAME }}:latest
docker stop ${{ secrets.DOCKER_APP_NAME }} || true
docker rm ${{ secrets.DOCKER_APP_NAME }} || true
docker run -d -p 8080:8080 --name ${{ secrets.DOCKER_APP_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_APP_NAME }}:latest
docker run --restart=on-failure -d -p 8080:8080 --name ${{ secrets.DOCKER_APP_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_APP_NAME }}:latest

0 comments on commit e207f71

Please # to comment.