Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "🐛 Bug"
description: "버그 이슈"
type: Bug
projects: [ "Team-SoFa/4" ]
body:
- type: textarea
attributes:
label: 버그 내용
description: 버그 사항에 대한 설명을 작성해 주세요.
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 버그 재현 방법
description: 버그를 발생시키려면 어떻게 해야 하는지 적어주세요.
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 참고 자료
description: 참고 자료가 있다면 작성해 주세요.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "✨ Feature"
description: "새로운 기능 추가"
type: "Feature"
projects: [ "Team-SoFa/4" ]
body:
- type: textarea
attributes:
label: 이슈 배경
description: 새로운 기능을 도입하는 배경을 작성해주세요.
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 이슈 내용
description: 새로운 기능에 대한 설명을 작성해 주세요. (구현 방법/ 동작 방식 등)
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 참고 자료
description: 참고 자료가 있다면 작성해 주세요.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "✨ Task"
description: "가장 최소한의 양식"
type: "Task"
projects: ["Team-SoFa/4"]
body:
- type: textarea
attributes:
label: 이슈 배경
description: 작업 내용 or 논의 내용의 배경을 작성해주세요.
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 📄 작업 내용 or 논의 내용
description: 설명을 작성해 주세요.
placeholder: 자세히 적을수록 좋습니다!
validations:
required: true

- type: textarea
attributes:
label: 🙋🏻 참고 자료
description: 참고 자료가 있다면 작성해 주세요.
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 관련 이슈

- close #번호

## PR 설명

7 changes: 1 addition & 6 deletions .github/workflows/backend-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ name: ✨ Linkiving backend CD ✨

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [ closed ]
branches:
- main

jobs:
backend-docker-build-and-push:
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest

steps:
Expand Down
17 changes: 14 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {
}

dependencies {
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
Expand All @@ -34,12 +34,23 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'org.springframework.boot:spring-boot-starter-actuator'

// H2 Database
runtimeOnly 'com.h2database:h2'

// Swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.11'


// AWS CloudWatch appender
implementation "ca.pjer:logback-awslogs-appender:1.6.0"

}

checkstyle {
maxWarnings = 0
configFile = file("${rootDir}/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/naver-checkstyle-suppressions.xml"]
configFile = file("${rootDir}/codestyle/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "${rootDir}/codestyle/naver-checkstyle-suppressions.xml"]
toolVersion = "8.42"
}

Expand Down
43 changes: 43 additions & 0 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration packagingData="true">

<!-- CloudWatch Appender -->
<appender name="aws_cloud_watch_log" class="ca.pjer.logback.AwsLogsAppender">
<layout>
<pattern>[%thread] [%date] [%level] [%file:%line] - %msg%n</pattern>
</layout>
<logGroupName>/aws/linkiving/application</logGroupName>
<logStreamUuidPrefix>linkiving-server</logStreamUuidPrefix>
<logRegion>ap-northeast-2</logRegion>
<maxBatchLogEvents>50</maxBatchLogEvents>
<maxFlushTimeMillis>30000</maxFlushTimeMillis>
<maxBlockTimeMillis>5000</maxBlockTimeMillis>
<retentionTimeDays>30</retentionTimeDays>
<accessKeyId>${AWS_ACCESS_KEY_ID}</accessKeyId>
<secretAccessKey>${AWS_SECRET_ACCESS_KEY}</secretAccessKey>
</appender>

<appender name="console_log" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%highlight(%-5level) %date [%thread] %cyan([%C{0} :: %M :: %L]) - %msg%n</pattern>
</encoder>
</appender>

<springProfile name="!prod">
<root level="INFO">
<appender-ref ref="console_log"/>
</root>
</springProfile>

<springProfile name="prod">
<root level="INFO">
<appender-ref ref="console_log"/>
<appender-ref ref="aws_cloud_watch_log"/>
</root>
</springProfile>

<root level="INFO">
<appender-ref ref="console_log"/>
</root>

</configuration>