-
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 'develop' into feature/#3
- Loading branch information
Showing
24 changed files
with
186 additions
and
20 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,17 @@ | ||
--- | ||
name: issue_template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## ✨ About Issue ✨ | ||
<!-- 이슈에 대한 내용을 설명해주세요. --> | ||
|
||
<br> | ||
|
||
## ✅ Todo | ||
<!-- 해야 할 일들을 적어주세요. --> | ||
- [ ] todo ! |
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,25 @@ | ||
## 🚩 관련 이슈 | ||
- close # | ||
|
||
## 📋 구현 기능 명세 | ||
- [x] | ||
|
||
## 📌 PR Point | ||
- 무슨 이유로 어떻게 코드를 변경했는지 | ||
|
||
|
||
- 어떤 부분에 리뷰어가 집중해야 하는지 | ||
|
||
|
||
- 개발하면서 어떤 점이 궁금했는지 | ||
|
||
## 📸 결과물 스크린샷 | ||
```java | ||
결과 예시 사진 첨부 | ||
``` | ||
|
||
## 🛠️ 테스트 | ||
- [x] 테스트 | ||
|
||
## 🚀 API Endpoint | ||
- |
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,63 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
deploy-ci: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
working-directory: linkmind | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: application.yaml 생성 | ||
run: | | ||
cd src/main/resources | ||
echo "${{ secrets.APPLICATION }}" > ./application-dev.yaml | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 빌드 | ||
run: | | ||
chmod +x gradlew | ||
./gradlew build -x test | ||
working-directory: ${{ env.working-directory }} | ||
shell: bash | ||
|
||
- name: docker build 가능하도록 환경 설정 | ||
uses: docker/[email protected] | ||
|
||
- name: docker hub에로그인 | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_LOGIN_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_LOGIN_ACCESSTOKEN }} | ||
|
||
- name: docker image 빌드 및 푸시 | ||
run: | | ||
docker build --platform linux/amd64 -t mmihye/toaster . | ||
docker push mmihye/toaster | ||
working-directory: ${{ env.working-directory }} | ||
|
||
deploy-cd: | ||
needs: deploy-ci | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: 도커 컨테이너 실행 | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.RELEASE_SERVER_IP }} | ||
username: ${{ secrets.RELEASE_SERVER_USER }} | ||
key: ${{ secrets.RELEASE_SERVER_KEY }} | ||
script: | | ||
cd ~ | ||
./deploy.sh |
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,34 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
working-directory: linkmind | ||
|
||
steps: | ||
- name: 체크아웃 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: application.yaml 생성 | ||
run: | | ||
cd src/main/resources | ||
echo "${{ secrets.APPLICATION }}" > ./application.yaml | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: 빌드 | ||
run: | | ||
chmod +x gradlew | ||
./gradlew build -x test | ||
working-directory: ${{ env.working-directory }} | ||
shell: bash |
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,7 @@ | ||
FROM amd64/amazoncorretto:17 | ||
|
||
WORKDIR /app | ||
|
||
COPY ./build/libs/toaster-0.0.1-SNAPSHOT.jar /app/toaster.jar | ||
|
||
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "-Dspring.profiles.active=dev", "toaster.jar"] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'linkmind' | ||
rootProject.name = 'toaster' |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
6 changes: 3 additions & 3 deletions
6
...com/app/linkmind/LinkmindApplication.java → ...a/com/app/toaster/ToasterApplication.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,13 +1,13 @@ | ||
package com.app.linkmind; | ||
package com.app.toaster; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class LinkmindApplication { | ||
public class ToasterApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(LinkmindApplication.class, args); | ||
SpringApplication.run(ToasterApplication.class, args); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...mon/advice/ControllerExceptionAdvice.java → ...mon/advice/ControllerExceptionAdvice.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
6 changes: 3 additions & 3 deletions
6
.../app/linkmind/common/dto/ApiResponse.java → ...m/app/toaster/common/dto/ApiResponse.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
13 changes: 13 additions & 0 deletions
13
linkmind/src/main/java/com/app/toaster/controller/HealthCheckController.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,13 @@ | ||
package com.app.toaster.controller; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class HealthCheckController { | ||
|
||
@GetMapping("/health") | ||
public String healthCheck() { | ||
return "OK"; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ava/com/app/linkmind/exception/Error.java → ...java/com/app/toaster/exception/Error.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
...a/com/app/linkmind/exception/Success.java → ...va/com/app/toaster/exception/Success.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
4 changes: 2 additions & 2 deletions
4
...mind/exception/model/CustomException.java → ...ster/exception/model/CustomException.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
4 changes: 2 additions & 2 deletions
4
...nd/exception/model/NotFoundException.java → ...er/exception/model/NotFoundException.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
4 changes: 2 additions & 2 deletions
4
...pp/linkmind/LinkmindApplicationTests.java → .../app/toaster/ToasterApplicationTests.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