diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 801e385..657abc8 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -66,8 +66,6 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} port: ${{ secrets.PORT }} script: | - sudo docker stop prod-server - sudo docker rm prod-server - sudo docker image rm ${{ secrets.DOCKER_REPO }} + docker rm -f $(docker ps -qa) sudo docker pull ${{ secrets.DOCKER_REPO }} sudo docker run -d -p 80:8080 ${{ secrets.DOCKER_REPO }}