From 7b66eace03f96423689164adc2cad529e5d6826e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=97=BC=ED=98=9C=EC=A0=95?= <122238744+cyzlcyzl@users.noreply.github.com> Date: Sat, 16 Dec 2023 03:10:46 +0900 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 }}