-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/#128' into develop
- Loading branch information
Showing
159 changed files
with
1,384 additions
and
1,220 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,69 @@ | ||
name: Deploy to Production | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@master | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
|
||
- name: Gradle Caching | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew build | ||
|
||
# 배포에 필요한 여러 설정 파일과 프로젝트 빌드 파일을 zip 파일로 모아준다. | ||
- name: Make zip file | ||
run: | | ||
mkdir deploy | ||
cp ./docker/docker-compose.blue.yml ./deploy/ | ||
cp ./docker/docker-compose.green.yml ./deploy/ | ||
cp ./appspec.yml ./deploy/ | ||
cp ./docker/Dockerfile ./deploy/ | ||
cp ./core/core-api/build/libs/core-api-0.0.1-SNAPSHOT.jar ./deploy/ | ||
zip -r -qq -j ./spring-build.zip ./deploy | ||
- 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: ap-northeast-2 | ||
|
||
- name: Upload to S3 | ||
run: | | ||
aws s3 cp \ | ||
--region ap-northeast-2 \ | ||
./spring-build.zip s3://melly-s3 | ||
# 추가 | ||
- name: Code Deploy | ||
run: aws deploy create-deployment --application-name melly-codedeploy | ||
--deployment-config-name CodeDeployDefault.HalfAtATime | ||
--deployment-group-name spring-deploy-group | ||
--s3-location bucket=melly-s3,bundleType=zip,key=spring-build.zip |
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
version: 0.0 | ||
|
||
# Deploy 대상 서버의 운영체제를 표시 | ||
os: linux | ||
|
||
# 코드 파일 전송과 관련된 설정 | ||
files: | ||
# 코드 파일의 소스 경로 | ||
- source: / | ||
# 코드 파일의 대상 경로 -> /home/ec2-user/app 디렉토리로 파일을 복사한다. | ||
destination: /home/ec2-user/app | ||
# 대상 경로에 이미 파일이 존재하는 경우, 덮어쓰기를 허용할지 여부 | ||
overwrite: yes | ||
|
||
# 파일 및 디렉토리 권한에 관련된 설정 | ||
permissions: | ||
# 권한을 설정할 대상 경로 | ||
- object: / | ||
# 모든 파일 및 디렉토리를 의미 | ||
pattern: "**" | ||
# 파일 및 디렉토리의 소유자를 ec2-user로 설정 | ||
owner: ec2-user | ||
# 파일 및 디렉토리의 그룹을 ec2-user로 설정 | ||
group: ec2-user | ||
|
||
# Deploy 전후에 실행할 스크립트 또는 명령에 관련된 설정 | ||
hooks: | ||
# 애플리케이션 시작시 실행할 스크립트 또는 명령에 관련된 설정 | ||
ApplicationStart: | ||
# 실행할 스크립트 또는 명령의 위치 | ||
- location: deploy.sh | ||
# 스크립트 또는 명령 실행의 제한 시간을 설정 | ||
timeout: 60 | ||
# CodeDeploy 중 실행되는 스크립트 또는 명령을 실행할 사용자를 지정 | ||
runas: ec2-user |
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
10 changes: 10 additions & 0 deletions
10
core/core-api/src/main/java/cmc/mellyserver/auth/certificate/CertificateConstants.java
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,10 @@ | ||
package cmc.mellyserver.auth.certificate; | ||
|
||
public abstract class CertificateConstants { | ||
|
||
public static final String TITLE_CERTIFICATION = "Melly 인증번호 안내"; | ||
|
||
public static final String PREFIX_CERTIFICATION = "email certification:"; | ||
|
||
public static final int LIMIT_TIME_CERTIFICATION_NUMBER = 60 * 3; | ||
} |
2 changes: 1 addition & 1 deletion
2
...on/event/CertificationCompletedEvent.java → ...tificate/CertificationCompletedEvent.java
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
2 changes: 1 addition & 1 deletion
2
core/core-api/src/main/java/cmc/mellyserver/auth/certificate/CertificationService.java
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
6 changes: 6 additions & 0 deletions
6
core/core-api/src/main/java/cmc/mellyserver/auth/common/constant/AuthConstants.java
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,6 @@ | ||
package cmc.mellyserver.auth.common.constant; | ||
|
||
public abstract class AuthConstants { | ||
|
||
public static final String SIGNUP_CELEBRATION_MAIL = "회원가입 축하드립니다!"; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...c/mellyserver/common/util/HeaderUtil.java → ...lyserver/auth/common/util/HeaderUtil.java
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,4 +1,4 @@ | ||
package cmc.mellyserver.common.util; | ||
package cmc.mellyserver.auth.common.util; | ||
|
||
import java.util.Objects; | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
.../core-api/src/main/java/cmc/mellyserver/auth/controller/dto/request/AuthLoginRequest.java
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
2 changes: 1 addition & 1 deletion
2
...core-api/src/main/java/cmc/mellyserver/auth/controller/dto/request/OAuthLoginRequest.java
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
2 changes: 1 addition & 1 deletion
2
...auth/dto/request/AuthLoginRequestDto.java → ...vice/dto/request/AuthLoginRequestDto.java
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
2 changes: 1 addition & 1 deletion
2
...to/request/EmailCertificationRequest.java → ...to/request/EmailCertificationRequest.java
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
2 changes: 1 addition & 1 deletion
2
...uth/dto/request/OAuthLoginRequestDto.java → ...ice/dto/request/OAuthLoginRequestDto.java
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
Oops, something went wrong.