-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from Team-HMH/develop
deploy - prod 서버 구축을 위한 main 브랜치 merge
- Loading branch information
Showing
179 changed files
with
3,008 additions
and
1,518 deletions.
There are no files selected for viewing
File renamed without changes.
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,60 @@ | ||
name: 🎉PROD-SERVER-DEPLOY🎉 | ||
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
codedeploy-application-name: [ hmh-codedeploy-app ] | ||
deployment-group-name: [ hmh-prod-deploy-group ] | ||
s3-bucket: [ hmh-server-bucket ] | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: mkdir resources folder | ||
run: | | ||
mkdir ./src/main/resources | ||
touch ./src/main/resources/application.yml | ||
shell: bash | ||
|
||
- name: copy yml file | ||
run: echo "${{ secrets.APPLICATION_PROD_YML }}" > ./src/main/resources/application.yml | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: 🐈 Gradle Build | ||
run: ./gradlew clean build | ||
|
||
- name: 📂 Make zip file | ||
run: zip -r ./$GITHUB_SHA.zip . | ||
|
||
- name: 🪣 S3 upload | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: 🚀 s3 upload | ||
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{matrix.s3-bucket}}/prod/deploy/$GITHUB_SHA.zip # 수정 고려 | ||
|
||
- name: ☀️ CodeDeploy~! | ||
run: aws deploy create-deployment | ||
--application-name ${{matrix.codedeploy-application-name}} | ||
--deployment-group-name ${{matrix.deployment-group-name}} | ||
--s3-location bucket=${{matrix.s3-bucket}},bundleType=zip,key=prod/deploy/$GITHUB_SHA.zip | ||
--file-exists-behavior OVERWRITE | ||
--region ap-northeast-2 |
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
Empty file.
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
src/main/java/sopt/org/HMH/domain/app/controller/AppController.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/sopt/org/HMH/domain/app/dto/request/AppArrayGoalTimeRequest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.