From 078e705e18edaeca77b62cf3570eb891bcabd978 Mon Sep 17 00:00:00 2001 From: uommou Date: Wed, 20 Mar 2024 04:23:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9A=A9=EB=9F=89=EB=B6=80=EC=A1=B1=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 90cefa9..70fa5fd 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -62,5 +62,10 @@ jobs: - name: Docker run run: | - docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest - docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest +# docker stop ${{ env.NAME }} && docker rm ${{ env.NAME }} && docker rmi ${{ env.DOCKER_IMAGE }}:latest +# docker run -d -p 3000:3000 --name newproject --restart always ${{ env.DOCKER_IMAGE }}:latest + docker pull ${{ env.DOCKER_IMAGE }}:latest + docker stop ${{ env.NAME }} || true + docker rm ${{ env.NAME }} || true + docker rmi ${{ env.DOCKER_IMAGE }}:latest || true + docker run -d -p 3000:3000 --name ${{ env.NAME }} --restart always ${{ env.DOCKER_IMAGE }}:latest \ No newline at end of file