diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9e709b0..801e385 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -66,9 +66,8 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} port: ${{ secrets.PORT }} script: | - docker stop my-was - docker rm my-was - docker image rm ${{ secrets.DOCKER_REPO }} - docker run -d -p 8080:8080 \ - -v /root/my-proj/resources:/app/resources \ - --name my-was ${{ secrets.DOCKER_REPO }} + sudo docker stop prod-server + sudo docker rm prod-server + sudo docker image rm ${{ secrets.DOCKER_REPO }} + sudo docker pull ${{ secrets.DOCKER_REPO }} + sudo docker run -d -p 80:8080 ${{ secrets.DOCKER_REPO }}