Skip to content

Commit

Permalink
chore: deploy.sh 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Nov 10, 2024
1 parent 7dbcd1f commit e802d88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layer-api/infra/production/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if [ -z $IS_GREEN ];then # blue라면
echo "1. get green image"
cd ./layer-api/infra/production

echo "1.1. pull latest green image"
sudo docker-compose -f docker-compose-green.yaml pull

echo "2. green container up"
sudo docker-compose -f docker-compose-green.yaml up -d

Expand All @@ -36,6 +39,8 @@ else
echo "1. get blue image"
cd ./layer-api/infra/production

echo "1.1. pull latest green image"
sudo docker-compose -f docker-compose-blue.yaml pull

echo "2. blue container up"
sudo docker-compose -f docker-compose-blue.yaml up -d
Expand Down

0 comments on commit e802d88

Please sign in to comment.