-
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
Showing
186 changed files
with
8,585 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,2 @@ | ||
build/libs filter=lfs diff=lfs merge=lfs -text | ||
just-0.0.1-SNAPSHOT.jar filter=lfs diff=lfs merge=lfs -text |
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,20 @@ | ||
--- | ||
name: 🐞 BUG | ||
about: Bug 사항을 입력해주세요. | ||
title: "[BUG]" | ||
labels: bug | ||
assignees: mjh000526, sleeg00 | ||
|
||
--- | ||
|
||
## Issue: 🐞 BUG | ||
어떤 작업에 버그인지 쓰세요. | ||
|
||
## 📝 Description | ||
버그 설명을 작성하세요. | ||
|
||
## 📚 참고 자료 | ||
버그를 고치는데 참고한 자료를 첨부해주세요 | ||
|
||
## 🔎 ETC | ||
기타 사항 |
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,24 @@ | ||
--- | ||
name: "✅ FEATURE" | ||
about: Feature 작업 사항을 입력해주세요. | ||
title: "[FEATURE]" | ||
labels: '' | ||
assignees: sleeg00 | ||
|
||
--- | ||
|
||
## Issue: ✅ FREATURE | ||
Feature 작업 사항을 입력해주세요. | ||
|
||
## 📝 Description | ||
작업 설명을 작성하세요. | ||
|
||
## 🎯 Todo | ||
☑️ todo | ||
☑️ todo | ||
|
||
## 📚 참고 자료 | ||
작업을 수행하는 데 필요한 참고 자료를 첨부해주세요. | ||
|
||
## 🔎 ETC | ||
기타 사항 |
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,33 @@ | ||
name: ⚡️Pull Request | ||
about: Pull Request 작성해주세요 | ||
title: '[PULL REQUEST]' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## ⚡️변경 사항 | ||
|
||
작업한 내용에 대한 간단한 설명을 제공합니다. | ||
|
||
## 🔗 이슈 링크 | ||
|
||
작업과 관련된 이슈 링크를 첨부합니다. | ||
|
||
## 🏮 변경 전 | ||
|
||
기존 코드와 어떻게 다른지 설명합니다. | ||
|
||
## 💡 변경 후 | ||
|
||
새로운 코드와 변경된 내용을 설명합니다. | ||
|
||
|
||
## 🔎 추가 정보 | ||
|
||
추가적인 정보가 있다면 여기에 적어주세요. | ||
|
||
|
||
|
||
|
||
|
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: Deploy to Amazon EC2 | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- 'feat/**' # feat으로 시작하는 브랜치에 대해서도 동작 | ||
push: | ||
branches: | ||
- develop | ||
- 'feat/**' # feat으로 시작하는 브랜치에 대해서도 동작 | ||
## | ||
|
||
# 본인이 설정한 값을 여기서 채워넣습니다. | ||
# 리전, 버킷 이름, CodeDeploy 앱 이름, CodeDeploy 배포 그룹 이름 | ||
env: | ||
AWS_REGION: ap-northeast-2 | ||
S3_BUCKET_NAME: just-s3 | ||
CODE_DEPLOY_APPLICATION_NAME: just-codedeploy-app | ||
CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: just-codedeploy-development-group | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
environment: production | ||
|
||
steps: | ||
# (1) 기본 체크아웃 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# (2) JDK 11 세팅 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Copy Secret | ||
env: | ||
OCCUPY_SECRET: ${{ secrets.OCCUPY_SECRET }} | ||
OCCUPY_SECRET_DIR: src/main/resources | ||
OCCUPY_SECRET_DIR_FILE_NAME: application.yml | ||
run: echo $OCCUPY_SECRET | base64 --decode > $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME | ||
|
||
# (3) Gradle build (Test 제외) | ||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee | ||
with: | ||
arguments: clean build -x test | ||
|
||
# - name: Docker build | ||
# run: | | ||
# docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
# docker build -t app . | ||
# docker tag app ${{ secrets.DOCKER_USERNAME }}/sejongmate:latest | ||
# docker push ${{ secrets.DOCKER_USERNAME }}/sejongmate:latest | ||
|
||
# (4) AWS 인증 (IAM 사용자 Access Key, Secret Key 활용) | ||
- 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: ${{ env.AWS_REGION }} | ||
|
||
# (5) 빌드 결과물을 S3 버킷에 업로드 | ||
- name: Upload to AWS S3 | ||
run: | | ||
aws deploy push \ | ||
--application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \ | ||
--ignore-hidden-files \ | ||
--s3-location s3://$S3_BUCKET_NAME/$GITHUB_SHA.zip \ | ||
--source . | ||
# (6) S3 버킷에 있는 파일을 대상으로 CodeDeploy 실행 | ||
- name: Deploy to AWS EC2 from S3 | ||
run: | | ||
aws deploy create-deployment \ | ||
--application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }} \ | ||
--deployment-config-name CodeDeployDefault.AllAtOnce \ | ||
--deployment-group-name ${{ env.CODE_DEPLOY_DEPLOYMENT_GROUP_NAME }} \ | ||
--s3-location bucket=$S3_BUCKET_NAME,key=$GITHUB_SHA.zip,bundleType=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,44 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | ||
# | ||
name: Java CI with Gradle | ||
#### | ||
on: # 이벤트 트리거 | ||
push: #push 이벤트 발생시 | ||
branches: #어떤 브랜치에서 | ||
- develop | ||
pull_request: #pull_request 발생시 | ||
branches: #어떤 브랜치에서 | ||
- develop | ||
|
||
permissions: #작업에 필요한 권환₩# | ||
contents: read | ||
|
||
jobs: #작업을 정의 | ||
build: | ||
|
||
runs-on: ubuntu-latest # Ubunt 환경에서 작업을 실행 | ||
|
||
steps: #작업 단계 정의 | ||
- uses: actions/checkout@v3 #현재 레퍼지토리를 체크아웃 | ||
- name: Set up JDK 11 #JDK 11 설치 | ||
uses: actions/setup-java@v3 #JDK 11을 설치하는 액션을 사용 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
- name: Copy Secret | ||
env: | ||
OCCUPY_SECRET: ${{ secrets.OCCUPY_SECRET }} | ||
OCCUPY_SECRET_DIR: src/main/resources | ||
OCCUPY_SECRET_DIR_FILE_NAME: application.yml | ||
run: echo $OCCUPY_SECRET | base64 --decode > $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME | ||
|
||
- name: Build with Gradle #Gradle이용하여 빌드 | ||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 | ||
with: | ||
gradle-version: 7.2 #그래들 버전 7.2 사용 | ||
arguments: clean 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,48 @@ | ||
HELP.md | ||
.gradl | ||
|
||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
/src/main/resources/application.yml | ||
/src/test/resources/application.yml | ||
/application.yml | ||
<<<<<<< HEAD | ||
|
||
======= | ||
/src/main/resources/templates/secret/.p8 | ||
>>>>>>> aea347125278b8318ff91f76045a9a2d7fb0c828 | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ |
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
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,2 @@ | ||
#Fri Mar 31 20:46:56 KST 2023 | ||
gradle.version=7.2 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
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 @@ | ||
{ | ||
"cells": [], | ||
"metadata": {}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
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 @@ | ||
FROM openjdk:11-jdk | ||
ARG JAR_FILE=builds/libs/*.jar | ||
COPY ${JAR_FILE} app.jar | ||
ENTRYPOINT ["java", "-Dspring.profiles.active=docker", "-jar", "app.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# JUST - 익명 고민 상담 | ||
|
||
## 프로젝트 목적 | ||
|
||
이 앱은 주변 사람들에게 털어놓기 어려운 걱정을 익명으로 공유하여 해소할 수 있는 플랫폼입니다. 이를 통해 당신은 누구에게도 말하지 못했던 걱정과 고민을 안전하게 나눌 수 있습니다. 앱 내에서 다른 사용자들과 대화를 나누고 충고를 구할 수 있으며, 이를 통해 당신은 더 나은 방향으로 나아갈 수 있게 됩니다. 이 앱은 당신의 고민을 더 이상 혼자 짊어지지 않도록 도와줄 것입니다. |
Oops, something went wrong.