-
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
[BE-INFRA] 무중단 배포 be/release로 브랜치 변경 #424
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bf03d6b
chore: 서브모듈 커밋 시점 변경
dwax1324 15933e5
docs: 액츄에이터 의존성 추가
dwax1324 3290af6
infra: 무중단 배포를 위한 cd 스크립트 변경
dwax1324 792534a
infra: 테스트와 빌드 하나로 통합
dwax1324 da58be7
[BE-INFRA] 무중단 배포 구현에 따른 action 스크립트 변환 (#399)
dwax1324 b35acd2
infra: 스크립트 수정
dwax1324 dd27940
Modify/#398 infra zero down time (#400)
dwax1324 e7a8c96
infra: 스크립트 수정
dwax1324 76a6c31
Modify/#398 infra zero down time (#401)
dwax1324 d1ecaeb
infra: 스크립트 수정
dwax1324 6b13f9a
Modify/#398 infra zero down time (#403)
dwax1324 6354c3d
infra: 스크립트 수정
dwax1324 c84b181
Modify/#398 infra zero down time (#404)
dwax1324 5fb42d4
infra: 스크립트 수정
dwax1324 e325332
infra: 스크립트 수정
dwax1324 35f0747
Modify/#398 infra zero down time (#405)
dwax1324 4f259f6
infra: 스크립트 수정
dwax1324 c79aff8
Modify/#398 infra zero down time (#421)
dwax1324 29c1231
Update Backend-CD-Prod-A.yml
jinchiim 51f6dfd
infra: 서비스 상태 체크 및 종료 로직 추가
dwax1324 b84c61f
Modify/#398 infra zero down time (#422)
dwax1324 53c30c5
infra: 에러를 반환하는 코드 수정
dwax1324 e541551
Modify/#398 infra zero down time (#423)
dwax1324 f683751
fix: curl 에러 수정
dwax1324 63061e5
merge
dwax1324 a226822
modify: 브랜치를 be/release로 변경
dwax1324 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Backend Production Server CD All | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
merge_group: | ||
branches: [ "be/release" ] | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/Backend-CI.yml | ||
secrets: inherit | ||
|
||
build: | ||
needs: test | ||
runs-on: ci | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ACTION_TOKEN }} | ||
submodules: true | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew bootJar | ||
working-directory: ./backend/pokerogue | ||
|
||
- name: Docker build and push | ||
run: | | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
docker build -t ${{ secrets.DOCKER_SERVER_IMAGE }} -f ./backend/pokerogue/docker/Dockerfile ./backend/pokerogue | ||
docker push ${{ secrets.DOCKER_SERVER_IMAGE }} | ||
|
||
prod_a: | ||
needs: build | ||
name: Backend Production Server CD A | ||
uses: ./.github/workflows/Backend-CD-Prod-A.yml | ||
secrets: inherit | ||
prod_b: | ||
needs: prod_a | ||
name: Backend Production Server CD B | ||
uses: ./.github/workflows/Backend-CD-Prod-B.yml | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule resources
updated
from 579d6c to 0a82ab
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
SNAT
를 쓴 이유가 궁금해요!DNAT
는 서브넷 B WAS로 요청을 전달하는 것 같고 👀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.
이거 지금 봤네요!
응답이 A EC2로 돌아오게 하기 위해서
SNAT
을 사용했습니다!SNAT
을 사용하지 않으면 패킷이ELB
로부터 온 것으로 착각하고LoadBalancer
로 향하고,A
인스턴스는 패킷 응답을 기다리며TimeOut
이 발생하게 됩니다!