From e2b27e25af3398c2424d7c88df5dc6f911803f27 Mon Sep 17 00:00:00 2001 From: "konu (Jin Geonwoo)" Date: Wed, 17 Jul 2024 05:21:07 +0900 Subject: [PATCH] =?UTF-8?q?[settings]=20deploy.sh=20=ED=8C=8C=EC=9D=BC=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 --- scripts/deploy.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 33ed52f0..7485c759 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -16,12 +16,14 @@ if [ -z "$IS_GREEN_EXIST" ];then echo "### BLUE -> GREEN ####" echo ">>> pull green image" docker pull recordy/recordy:latest + echo ">>> remove old green container" + docker compose rm -fs green echo ">>> up green container" docker compose up -d green while [ 1 = 1 ]; do - echo ">>> green health check ..." - sleep 3 - REQUEST=$(curl http://127.0.0.1:8082/actuator/health) + echo ">>> green health check ..." + sleep 3 + REQUEST=$(curl http://127.0.0.1:8082/actuator/health) if [ -n "$REQUEST" ]; then echo ">>> health check success !" break; @@ -40,6 +42,8 @@ else echo "### GREEN -> BLUE ###" echo ">>> pull blue image" docker pull recordy/recordy:latest + echo ">>> remove old blue container" + docker compose rm -fs blue echo ">>> up blue container" docker compose up -d blue while [ 1 = 1 ]; do