diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b0414f..2c7349a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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