Skip to content

Commit

Permalink
Merge pull request #29 from Kusitms-29th-Kobaco-A/chore/blue-green
Browse files Browse the repository at this point in the history
chore : deploy.sh 일부 수정
  • Loading branch information
tlarbals824 authored Feb 29, 2024
2 parents 7452812 + 8b43b9d commit e9a2fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ if [ "$application_staus" == "FAIL" ]; then
$(docker rm -f $green_application_name)
else
echo "reload processing"
sed -i "s/application_port=.*/application_port=$green_application_port/" .env
echo $(docker image prune -f)
echo $(docker rename $blue_application_name $temp_application_name)
echo $(docker rename $green_application_name $blue_application_name)
sed -i "s/application_port=.*/application_port=$green_application_port/" .env
echo $(docker exec -it nginx-nginx-1 service nginx reload)
echo $(docker rm -f $temp_application_name)
fi
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ jobs:
echo "AWS_S3_BUCKET=${{secrets.AWS_S3_BUCKET}}" >> .env
chmod +x ./deploy/deploy.sh
cd deploy && source deploy.sh
cd deploy
bash deploy.sh

0 comments on commit e9a2fe1

Please sign in to comment.