-
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.
Co-authored-by: 노가성 <[email protected]> Co-authored-by: 변찬우 <[email protected]> Co-authored-by: 최장우 <[email protected]> Co-authored-by: 하제우 <[email protected]> Co-authored-by: 박준호 <[email protected]>
- Loading branch information
1 parent
78f68e0
commit 49cf044
Showing
235 changed files
with
29,017 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @YangSiJun528 @chanwoo00106 @siwony @jyeonjyan |
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,44 @@ | ||
name: Hello,GSM Back-V2 CI | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
REDIS_HOST: ${{secrets.REDIS_HOST}} | ||
|
||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: 7 | ||
redis-port: 6379 | ||
|
||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Set up JDK 17 job has success | ||
if: ${{ success() }} | ||
run: echo "jdk 17 job succeeded" | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name : Setup Gradls's permission | ||
run : chmod +x gradlew | ||
|
||
- name: Run build with Gradle wrapper | ||
run: ./gradlew clean hellogsm-web:build hellogsm-batch:build |
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,4 @@ | ||
name: Hello,GSM Back-V2 WEB Module CI | ||
|
||
on: | ||
push: |
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,56 @@ | ||
name: HelloGSM dev batch CD workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- "hellogsm-batch/**" | ||
branches: [ "develop" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name : Setup Gradls's permission | ||
run : chmod +x gradlew | ||
|
||
- name: make yml file | ||
run: touch ./hellogsm-batch/src/main/resources/application-dev.yml | ||
|
||
echo "${{ secrets.DEV_BATCH_YML }}" > ./hellogsm-batch/src/main/resources/application-dev.yml | ||
|
||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run : ./gradlew clean hellogsm-batch:build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip . | ||
shell: bash | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip s3://${{ secrets.BUCKET_NAME }}/dev/batch/$GITHUB_SHA.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name hellogsm-dev-codedeploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name dev-batch-server --s3-location bucket=${{ secrets.BUCKET_NAME }},bundleType=zip,key=dev/batch/$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,56 @@ | ||
name: HelloGSM dev web CD workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- "hellogsm-web/**" | ||
branches: [ "develop" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name : Setup Gradls's permission | ||
run : chmod +x gradlew | ||
|
||
- name: make yml file | ||
run: touch ./hellogsm-web/src/main/resources/application-dev.yml | ||
|
||
echo "${{ secrets.DEV_WEB_YML }}" > ./hellogsm-web/src/main/resources/application-dev.yml | ||
|
||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run : ./gradlew clean hellogsm-web:build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip . | ||
shell: bash | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip s3://${{ secrets.BUCKET_NAME }}/dev/web/$GITHUB_SHA.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name hellogsm-dev-codedeploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name dev-web-server --s3-location bucket=${{ secrets.BUCKET_NAME }},bundleType=zip,key=dev/web/$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,56 @@ | ||
name: HelloGSM prod batch CD workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- "hellogsm-batch/**" | ||
branches: [ "main" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name : Setup Gradls's permission | ||
run : chmod +x gradlew | ||
|
||
- name: make yml file | ||
run: touch ./hellogsm-batch/src/main/resources/application-prod.yml | ||
|
||
echo "${{ secrets.PROD_BATCH_YML }}" > ./hellogsm-batch/src/main/resources/application-prod.yml | ||
|
||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run : ./gradlew clean hellogsm-batch:build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip . | ||
shell: bash | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip s3://${{ secrets.BUCKET_NAME }}/prod/batch/$GITHUB_SHA.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name hellogsm-prod-codedeploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name prod-batch-server --s3-location bucket=${{ secrets.BUCKET_NAME }},bundleType=zip,key=prod/batch/$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,56 @@ | ||
name: HelloGSM prod web CD workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- "hellogsm-web/**" | ||
branches: [ "main" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
CD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name : Setup Gradls's permission | ||
run : chmod +x gradlew | ||
|
||
- name: make yml file | ||
run: touch ./hellogsm-web/src/main/resources/application-prod.yml | ||
|
||
echo "${{ secrets.PROD_WEB_YML }}" > ./hellogsm-web/src/main/resources/application-prod.yml | ||
|
||
shell: bash | ||
|
||
- name: Build with Gradle | ||
run : ./gradlew clean hellogsm-web:build | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip . | ||
shell: bash | ||
|
||
- name: Upload to S3 | ||
run: aws s3 cp --region ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip s3://${{ secrets.BUCKET_NAME }}/prod/web/$GITHUB_SHA.zip | ||
|
||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name hellogsm-prod-codedeploy --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name prod-web-server --s3-location bucket=${{ secrets.BUCKET_NAME }},bundleType=zip,key=prod/web/$GITHUB_SHA.zip |
Oops, something went wrong.