-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style[api-server]: deploy 배포 CI/CD 테스트 * 머지 완료되었을 때만 실행되도록 수정 (#143) * fix[api-server]: 깃허브 액션 작업 이름 수정 * fix[api-server]: 머지 완료되었을 때만 실행되도록 수정 * style[api-server]: 게이트웨이 공백 수정 (CI/CD 테스트) * fix[api-server]: 추첨, 선착순 서버 머지 완료되었을 때만 실행되도록 수정 * github readme추가 (#147) * docs: 서버 아키텍처 이미지 추가 * docs: 배포 아키텍처 이미지 추가 * CI-CD 파이프라인 개선 (#148) * feat[api-server]: swagger 업로드 파이프라인 추가 * fix[api-server]: swagger 배포를 분리 * style[api-server]: 변경사항 테스트 --------- Co-authored-by: 유성욱 <[email protected]>
- Loading branch information
Showing
7 changed files
with
102 additions
and
49 deletions.
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
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
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,54 @@ | ||
name: Order-Deploy | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- deploy | ||
types: | ||
- closed | ||
paths: | ||
- "lottery/**" | ||
- "order/**" | ||
- "common/**" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# 스니펫을 불러온다. | ||
- name: Download multiple files as an artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: order-snippets | ||
path: order/build/generated-snippets/ | ||
|
||
- name: Download multiple files as an artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: lottery-snippets | ||
path: lottery/build/generated-snippets/ | ||
|
||
- name: Verify files downloaded | ||
run: | | ||
echo "Download Files" | ||
ls -la order/build/generated-snippets/ | ||
ls -la lottery/build/generated-snippets/ | ||
- name: Generate Swagger Document | ||
run: | | ||
./gradlew mergeApiSpecs | ||
./gradlew openapi3 | ||
./gradlew customGenerateSwaggerUI | ||
ls | ||
# 스웨거를 업로드한다. | ||
- name: Upload to S3 | ||
uses: jakejarvis/s3-sync-action@master | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }} | ||
AWS_REGION: 'ap-northeast-2' # 리전 정보 | ||
SOURCE_DIR: 'swagger-ui-watermelon' # 업로드할 파일들이 위치한 로컬 디렉토리 | ||
AWS_S3_BUCKET: 'watermelon-s3-bucket' # S3 버킷 이름 |
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 |
---|---|---|
|
@@ -29,4 +29,5 @@ public AmazonS3 amazonS3() { | |
.withRegion(region) | ||
.build(); | ||
} | ||
|
||
} |