-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#145 #161
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ง ๊ณ ์ํ์ จ์ต๋๋ค!!! ๊ตฟ๊ตฟ!!!!!
- [ ] docker-compose.yml ํ์ผ์ ๋ง์ด๊ทธ๋ ์ด์ ํ API์ ํฌ์๋ฉ์ ๋ณ๊ฒฝํด์คฌ๋์? | ||
- [ ] Spring Secret ๊ฐ์ ์์ ํ๊ฑฐ๋ ์ถ๊ฐํ๋ค๋ฉด Github Secret์์ ์์ ์ ํด์คฌ๋์? | ||
- [ ] Nestjs Secret ๊ฐ์ ์์ ํ๊ฑฐ๋ ์ถ๊ฐํ๋ค๋ฉด Docker-Compose.yml ํ์ผ ๋ฐ ์ธ์คํด์ค ๋ด๋ถ์ .env ํ์ผ์ ์์ ํ๋์? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์คํธ ์ด๊ฑฐ ์ข๋ค์!
#!/bin/bash | ||
export $(grep -v '^#' docker/.env | sed 's/ *= */=/g' | xargs) | ||
|
||
IS_GREEN_EXIST=$(sudo docker ps | grep green) | ||
DIR=~/docker | ||
|
||
SPRING_GREEN_PORT=4001 | ||
SPRING_BLUE_PORT=4002 | ||
NESTJS_GREEN_PORT=3001 | ||
NESTJS_BLUE_PORT=3002 | ||
DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD | ||
|
||
SPRING_GREEN_NAME="spring-green" | ||
SPRING_BLUE_NAME="spring-blue" | ||
NESTJS_GREEN_NAME="nestjs-green" | ||
NESTJS_BLUE_NAME="nestjs-blue" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น ํ์ผ์ ์ค์ ๋์์์๋ ์ฌ์ฉํ์ง ์์ ํ์ผ ๋ง์๊น์?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ ์คํธ๋ deploy.sh๋ก ์งํํ๋ค๊ฐ ์ปจํ ์ด๋๋ค์ ์คํํ ๋ ์ด์๊ณผ ๊ฐ๋ฐ ์๋ฒ์ ๋ช ๋ น์ด ์ฐจ์ด๊ฐ ์์ด์ ๋ถ๋ฆฌํ์ต๋๋ค~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๊ทธ๋ ๊ตฐ์!
๊ทธ๋ฌ๋ฉด ํด๋น ํ์ผ์ ec2๋ด์ ์๋์ผ๋ก ์ฃผ์
๋๋ ํ์ผ์ ์๋๊ฑฐ์ฃ ?? ๋ง์ฝ ec2๋ด์ ํด๋น ํ์ผ์ด ์๋ค๋ฉด ์๋์ผ๋ก ํด๋น ํ์ผ์ ๋ง๋ค์ด์ผ ํ๋๊ฑฐ์ฃ ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ง์ต๋๋ค~
๐ฉโ๐ป Contents
Github Action, Elastic Beanstalk์ ํ์ฉํ CI/CD ํ๊ฒฝ ๊ตฌ์ถ -> ๋น์ฉ ๋ฌธ์ ๋ก Github Action, DockerHub์ Docker & Shell Script๋ฅผ ํ์ฉํ CI/CD ๋ฐฉ์์ผ๋ก ๋ณ๊ฒฝ
๐ Review Note
[๋ฐฐํฌ ๋ฐฉ์]
๐ฃ Related Issue