-
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.
- Loading branch information
Showing
291 changed files
with
9,723 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: service-gateway | ||
REPO: investing-service-gateway | ||
working-directory: ./service-gateway | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
mongodb-version: ['6.0'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 도커허브에 로그인한다. | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
|
||
- name: 도커 빌드 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./service-gateway | ||
file: ./service-gateway/Dockerfile | ||
push: true | ||
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{env.REPO}}:latest |
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,55 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: stock-batch | ||
REPO: investing-stock-batch | ||
working-directory: ./stock-batch | ||
S3_BUCKET_NAME: investing-batch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
mongodb-version: ['6.0'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: 몽고디비를 설치한다. | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
mongodb-db: investing | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 파일을 압축한다. | ||
run: zip -qq -r ./$GITHUB_SHA.zip . | ||
shell: bash | ||
|
||
- name: AWS 암호화 작업 | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | ||
aws-region: ap-northeast-2 | ||
|
||
- name: Upload to S3 #3 # S3에 업로드 | ||
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$NAME/$GITHUB_SHA.zip | ||
|
||
- name: 코드 디플로이를 실행한다. | ||
run: aws deploy create-deployment --application-name investing-batch-deploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name investing-batch-deploy --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$NAME/$GITHUB_SHA.zip |
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,41 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: stock-config | ||
REPO: investing-stock-config | ||
working-directory: ./stock-config | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 도커허브에 로그인한다. | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
|
||
- name: 도커 빌드 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./stock-config | ||
file: ./stock-config/Dockerfile | ||
push: true | ||
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{env.REPO}}:latest |
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,41 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: stock-consumer | ||
REPO: investing-stock-consumer | ||
working-directory: ./stock-consumer | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 도커허브에 로그인한다. | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
|
||
- name: 도커 빌드 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./stock-consumer | ||
file: ./stock-consumer/Dockerfile | ||
push: true | ||
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{env.REPO}}:latest |
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,51 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: stock-service | ||
REPO: investing-stock-service | ||
working-directory: ./stock-service | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
mongodb-version: [ '6.0' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: 몽고디비를 설치한다. | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
mongodb-db: investing | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 도커허브에 로그인한다. | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
|
||
- name: 도커 빌드 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./stock-service | ||
file: ./stock-service/Dockerfile | ||
push: true | ||
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{env.REPO}}:latest |
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,46 @@ | ||
name: githubAction | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
env: | ||
NAME: user-service | ||
REPO: investing-user-service | ||
working-directory: ./user-service | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 자바 17를 설치합니다. | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: 레디스 실행 | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: '6' | ||
|
||
- name: Gradle 명령 실행을 위한 권한을 부여합니다 | ||
run: chmod +x gradlew | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 그래들 빌드를 실행한다. | ||
run: ./gradlew build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 도커허브에 로그인한다. | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
|
||
- name: 도커 빌드 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./user-service | ||
file: ./user-service/Dockerfile | ||
push: true | ||
tags: ${{secrets.DOCKERHUB_USERNAME}}/${{env.REPO}}:latest |
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 |
---|---|---|
@@ -1,24 +1,37 @@ | ||
# Compiled class file | ||
*.class | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
# Log file | ||
*.log | ||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
# BlueJ files | ||
*.ctxt | ||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
### VS Code ### | ||
.vscode/ |
Oops, something went wrong.