-
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.
- Loading branch information
0 parents
commit 9601930
Showing
337 changed files
with
12,861 additions
and
0 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,25 @@ | ||
이슈 제목 예시(이슈 생성시 삭제) | ||
--- | ||
| 태그 | 제목 | | ||
| --- |-------------------------------------------------------------------------| | ||
| feat | 새로운 기능 구현<br>ex. [feat]:Main #11 구글 로그인 API 기능 구현 | | ||
| fix | 코드 오류 수정<br>ex. [fix]:Main #10 회원가입 비즈니스 로직 오류 수정 | | ||
| del | 쓸모없는 코드 삭제<br>ex. [del]:Main #12 불필요한 import 제거 | | ||
| docs | README나 wiki 등의 문서 개정<br>ex. [docs]:global #14 리드미 수정 | | ||
| refactor | 내부 로직은 변경 하지 않고 기존의 코드를 개선하는 리팩토링<br>ex. [refactor]:Global #15 코드 로직 개선 | | ||
| chore | 의존성 추가, yml 추가와 수정, 패키지 구조 변경, 파일 이동 <br>ex. [chore]:Socket #21 yml 수정 | | ||
| test | 테스트 코드 작성, 수정 <br>ex. [test]:Global #20 로그인 API 테스트 코드 작성 | | ||
|
||
--- | ||
|
||
### 📝 Description | ||
|
||
- 구현할 내용 1 | ||
- 구현할 내용 2 | ||
|
||
--- | ||
|
||
### 📝 Todo | ||
|
||
- [ ] : 구현할 내용 1 | ||
- [ ] : 구현할 내용 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: 이슈 템플릿 | ||
about: 이슈 템플릿 | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
이슈 제목 예시(이슈 생성시 삭제) | ||
--- | ||
| 태그 | 제목 | | ||
| --- |-------------------------------------------------------------------------| | ||
| feat | 새로운 기능 구현<br>ex. [feat]:Main 구글 로그인 API 기능 구현 | | ||
| fix | 코드 오류 수정<br>ex. [fix]:Main 회원가입 비즈니스 로직 오류 수정 | | ||
| del | 쓸모없는 코드 삭제<br>ex. [del]:Main 불필요한 import 제거 | | ||
| docs | README나 wiki 등의 문서 개정<br>ex. [docs]:global 리드미 수정 | | ||
| refactor | 내부 로직은 변경 하지 않고 기존의 코드를 개선하는 리팩토링<br>ex. [refactor]:Global 코드 로직 개선 | | ||
| chore | 의존성 추가, yml 추가와 수정, 패키지 구조 변경, 파일 이동 <br>ex. [chore]:Socket yml 수정 | | ||
| test | 테스트 코드 작성, 수정 <br>ex. [test]:Global 로그인 API 테스트 코드 작성 | | ||
|
||
--- | ||
|
||
### 📝 Description | ||
|
||
- 구현할 내용 1 | ||
- 구현할 내용 2 | ||
|
||
--- | ||
|
||
### 📝 Todo | ||
|
||
- [ ] : 구현할 내용 1 | ||
- [ ] : 구현할 내용 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
제목 예시: [Main]: #27 엔티티 수정 | ||
|
||
### ✅ PR 유형 | ||
어떤 변경 사항이 있었나요? | ||
|
||
- [ ] 새로운 기능 추가 | ||
- [ ] 버그 수정 | ||
- [ ] 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경) | ||
- [ ] 코드 리팩토링 | ||
- [ ] 주석 추가 및 수정 | ||
- [ ] 문서 수정 | ||
- [ ] 빌드 부분 혹은 패키지 매니저 수정 | ||
- [ ] 파일 혹은 폴더명 수정 | ||
- [ ] 파일 혹은 폴더 삭제 | ||
|
||
--- | ||
|
||
### 📝 작업 내용 | ||
이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능) | ||
|
||
- 작업한 내용 1 | ||
- 작업한 내용 2 | ||
|
||
--- | ||
|
||
### ✏️ 이슈닫기(선택 사항) | ||
해결한 이슈 닫기 | ||
|
||
ex) | ||
closed #(이슈번호) | ||
|
||
--- | ||
|
||
### 🎸 기타 사항 or 추가 코멘트 | ||
|
||
|
||
|
||
|
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: Main Service CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
check-skip: | ||
name: Check ot skip CI | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.head_commit.message, 'Main') || contains(github.event.head_commit.message, 'Global') }} | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: check-skip | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 🍀 JDK 17 설정 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: 🍀 application.yml 설정 | ||
run: | | ||
cd ./MainService | ||
cd ./src/main | ||
mkdir resources | ||
cd ./resources | ||
touch ./application.yml | ||
echo "$APPLICATION_DEV" > ./application.yml | ||
env: | ||
APPLICATION_MAIN: ${{ secrets.APPLICATION_DEV }} | ||
|
||
- name: 🍀 gradle build를 위한 권한 설정 | ||
run: | | ||
cd ./Main | ||
chmod +x gradlew | ||
- name: 🍀 gradle build | ||
run: | | ||
cd ./Main | ||
./gradlew build -x test |
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,87 @@ | ||
name: Main Service CICD | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
check-skip: | ||
name: Check ot skip CI | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.head_commit.message, 'Main') || contains(github.event.head_commit.message, 'Global') }} | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: check-skip | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 🍀 JDK 17 설정 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: 🍀 application.yml 설정 | ||
run: | | ||
cd ./Main | ||
cd ./src/main | ||
mkdir resources | ||
cd ./resources | ||
touch ./application.yml | ||
echo "$APPLICATION_DEV" > ./application.yml | ||
env: | ||
APPLICATION_MAIN: ${{ secrets.APPLICATION_DEV }} | ||
|
||
- name: 🍀 gradle build를 위한 권한 설정 | ||
run: | | ||
cd ./Main | ||
chmod +x gradlew | ||
- name: 🍀 gradle build | ||
run: | | ||
cd ./Main | ||
./gradlew build -x test | ||
- name: 🍀 docker image build 후 docker hub에 push | ||
run: | | ||
cd ./Main | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
docker build -t ${{ secrets.DOCKER_REPOSITORY }}/${{ secrets.MAIN_DOCKER_IMAGE }} . | ||
docker push ${{ secrets.DOCKER_REPOSITORY }}/${{ secrets.DOCKER_IMAGE }} | ||
- name: 🍀 deploy.sh 파일을 EC2 development server로 전달 | ||
uses: appleboy/scp-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.EC2_HOST }} | ||
key: ${{ secrets.EC2_KEY }} | ||
port: ${{ secrets.EC2_PORT }} | ||
source: "./scripts/deploy.sh" | ||
target: "/home/ubuntu/" | ||
|
||
- name: 🍀 docker-compose.yml 파일을 EC2 development server로 전달 | ||
uses: appleboy/scp-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.MAIN_EC2_HOST }} | ||
key: ${{ secrets.MAIN_EC2_KEY }} | ||
port: ${{ secrets.MAIN_EC2_PORT }} | ||
source: "./Main/docker-compose.yml" | ||
target: "/home/ubuntu/" | ||
|
||
- name: 🍀 docker hub 에서 pull 후 deploy | ||
uses: appleboy/ssh-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.EC2_HOST }} | ||
key: ${{ secrets.EC2_KEY }} | ||
script: | | ||
sudo docker pull ${{ secrets.DOCKER_REPOSITORY }}/${{ secrets.DOCKER_IMAGE }} | ||
chmod 777 ./scripts/deploy.sh | ||
cp ./scripts/deploy.sh ./deploy.sh | ||
./deploy.sh | ||
docker image prune -f |
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: Socket Service CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
check-skip: | ||
name: Check ot skip CI | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.head_commit.message, 'Socket') || contains(github.event.head_commit.message, 'Global') }} | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: check-skip | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: 🍀 JDK 17 설정 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: 🍀 application.yml 설정 | ||
run: | | ||
cd ./socket | ||
cd ./src/main | ||
mkdir resources | ||
cd ./resources | ||
touch ./application.yml | ||
echo "$APPLICATION_SOCKET" > ./application.yml | ||
env: | ||
APPLICATION_SOCKET: ${{ secrets.APPLICATION_SOCKET }} | ||
|
||
- name: 🍀 gradle build를 위한 권한 설정 | ||
run: | | ||
cd ./socket | ||
chmod +x gradlew | ||
- name: 🍀 gradle build | ||
run: | | ||
cd ./socket | ||
./gradlew build -x test |
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,85 @@ | ||
name: Socket Service CICD | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
|
||
jobs: | ||
check-skip: | ||
name: Check ot skip CI | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.head_commit.message, 'Socket') || contains(github.event.head_commit.message, 'Global') }} | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: check-skip | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 🍀 JDK 17 설정 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: 🍀 application.yml 설정 | ||
run: | | ||
cd ./socket | ||
cd ./src/main | ||
mkdir resources | ||
cd ./resources | ||
touch ./application.yml | ||
echo "$APPLICATION_SOCKET" > ./application.yml | ||
env: | ||
APPLICATION_SOCKET: ${{ secrets.APPLICATION_SOCKET }} | ||
|
||
- name: 🍀 gradle build를 위한 권한 설정정 | ||
run: | | ||
cd ./socket | ||
chmod +x gradlew | ||
- name: 🍀 gradle build | ||
run: | | ||
cd ./socket | ||
./gradlew build -x test | ||
- name: 🍀 docker image build 후 docker hub에 push | ||
run: | | ||
cd ./socket | ||
docker login -u ${{ secrets.SOCKET_DOCKER_USERNAME }} -p ${{ secrets.SOCKET_DOCKER_PASSWORD }} | ||
docker build -t ${{ secrets.SOCKET_DOCKER_REPOSITORY }}/${{ secrets.SOCKET_DOCKER_IMAGE }} . | ||
docker push ${{ secrets.SOCKET_DOCKER_REPOSITORY }}/${{ secrets.SOCKET_DOCKER_IMAGE }} | ||
- name: 🍀 deploy.sh 파일을 EC2 development server로 전달 | ||
uses: appleboy/scp-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SOCKET_EC2_HOST }} | ||
key: ${{ secrets.SOCKET_EC2_KEY }} | ||
port: ${{ secrets.SOCKET_EC2_PORT }} | ||
source: "./scripts/deploy.sh" | ||
target: "/home/ubuntu/" | ||
|
||
- name: 🍀 docker-compose.yml 파일을 EC2 development server로 전달 | ||
uses: appleboy/scp-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SOCKET_EC2_HOST }} | ||
key: ${{ secrets.SOCKET_EC2_KEY }} | ||
port: ${{ secrets.SOCKET_EC2_PORT }} | ||
source: "./socket/docker-compose.yml" | ||
target: "/home/ubuntu/" | ||
|
||
- name: 🍀 docker hub 에서 pull 후 deploy | ||
uses: appleboy/ssh-action@master | ||
with: | ||
username: ubuntu | ||
host: ${{ secrets.SOCKET_EC2_HOST }} | ||
key: ${{ secrets.SOCKET_EC2_KEY }} | ||
script: | | ||
sudo docker pull ${{ secrets.SOCKET_DOCKER_REPOSITORY }}/${{ secrets.SOCKET_DOCKER_IMAGE }} | ||
chmod 777 ./scripts/deploy.sh | ||
cp ./scripts/deploy.sh ./deploy.sh | ||
./deploy.sh | ||
docker image prune -f |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.