Skip to content

Commit

Permalink
fix : update deploy.sh
Browse files Browse the repository at this point in the history
update shell file based on docker updates
  • Loading branch information
ParkIsComing committed Jul 30, 2024
1 parent c424730 commit 1cade11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions docker-compose.blue.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#blue
version: '3'
services:
jupjup:
build: .
Expand Down
1 change: 0 additions & 1 deletion docker-compose.green.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
jupjup:
build: .
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ -z "$EXIST_BLUE" ]; then
# 이전 컨테이너가 존재하면 종료 및 제거
if [ -n "$EXIST_GREEN" ]; then
echo "$BEFORE_COMPOSE_COLOR down"
docker compose -p ${DOCKER_APP_NAME}-green -f docker-compose.green.yml down
docker compose -p ${DOCKER_APP_NAME}-green -f docker-compose.green.yml down --remove-orphans
fi

else
Expand All @@ -28,7 +28,7 @@ else
# 이전 컨테이너가 존재하면 종료 및 제거
if [ -n "$EXIST_BLUE" ]; then
echo "$BEFORE_COMPOSE_COLOR down"
docker compose -p ${DOCKER_APP_NAME}-blue -f docker-compose.blue.yml down
docker compose -p ${DOCKER_APP_NAME}-blue -f docker-compose.blue.yml down --remove-orphans
fi
fi

Expand Down

0 comments on commit 1cade11

Please sign in to comment.