Skip to content

Commit

Permalink
Test: 블루-그린 무중단 배포 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed Jul 1, 2024
1 parent f109292 commit 3cf6034
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,8 @@ jobs:
sudo systemctl reload nginx
# 이전 컨테이너 중지 및 제거
for OLD_CONTAINER_NAME in $OLD_CONTAINER; do
if sudo docker ps -a --format '{{.Names}}' | grep -Eq "^${OLD_CONTAINER_NAME}\$"; then
sudo docker stop $OLD_CONTAINER_NAME
sudo docker rm $OLD_CONTAINER_NAME
fi
done
sudo docker stop $OLD_CONTAINER
sudo docker rm $OLD_CONTAINER
# 실행 중인 Docker 컨테이너 확인
sudo docker ps
Expand Down

0 comments on commit 3cf6034

Please sign in to comment.