Skip to content

Commit

Permalink
[settings] deploy.sh 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkonu authored Jul 16, 2024
1 parent a55413c commit e2b27e2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit e2b27e2

Please sign in to comment.