From bdfeb19dae717598714c2d1bdb41525101086cac 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: Mon, 18 Dec 2023 21:30:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B9=83=ED=97=88=EB=B8=8C=20=EC=95=A1?= =?UTF-8?q?=EC=85=98=20=EC=A0=95=EC=83=81=ED=99=94=EB=A5=BC=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EB=8F=84=EC=BB=A4=20=EB=AA=85=EB=A0=B9=EC=96=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }}