Skip to content

Commit dabb663

Browse files
authored
Merge a1b72fe into 1ebda0c
2 parents 1ebda0c + a1b72fe commit dabb663

File tree

250 files changed

+14985
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+14985
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/gradlew text eol=lf
2+
*.bat text eol=crlf
3+
*.jar binary
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Bug Template
3+
about: 버그를 이슈에 등록한다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 🤷 버그 내용
11+
12+
## ⚠ 버그 재현 방법
13+
1.
14+
2.
15+
3.
16+
17+
## 📸 스크린샷
18+
19+
## 👄 참고 사항
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Chore Template
3+
about: 운영기능을 이슈에 등록한다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 🤷 구현할 기능
11+
12+
## 🔨 동작 내용
13+
14+
- [ ] To-do 1
15+
- [ ] To-do 2
16+
- [ ] To-do 3
17+
18+
## 📄 참고 사항
19+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature Template
3+
about: 구현할 기능을 이슈에 등록한다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 🤷 구현할 기능
11+
12+
## 🔨 상세 작업 내용
13+
14+
- [ ] To-do 1
15+
- [ ] To-do 2
16+
- [ ] To-do 3
17+
18+
## 📄 참고 사항
19+
20+
## ⏰ 예상 소요 기간
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Fix Template
3+
about: 픽스 기능을 이슈에 등록한다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 🤷 픽스할 기능
11+
12+
## 🔨 상세 작업 내용
13+
14+
- [ ] To-do 1
15+
- [ ] To-do 2
16+
- [ ] To-do 3
17+
18+
## 📄 참고 사항
19+
20+
## ⏰ 예상 소요 기간
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Refactor Template
3+
about: 리펙토링할 기능을 이슈에 등록한다.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 🤷 리펙토링할 기능
11+
12+
## 🔨 상세 작업 내용
13+
14+
- [ ] To-do 1
15+
- [ ] To-do 2
16+
- [ ] To-do 3
17+
18+
## 📄 참고 사항
19+
20+
## ⏰ 예상 소요 기간

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- [ ] 💯 테스트는 잘 통과했나요?
2+
- [ ] 🏗️ 빌드는 성공했나요?
3+
- [ ] 🧹 불필요한 코드는 제거했나요?
4+
- [ ] 💭 이슈는 등록했나요?
5+
- [ ] 🏷️ 라벨은 등록했나요?
6+
7+
## 작업 내용
8+
9+
## 스크린샷
10+
11+
## 주의사항
12+
13+
Closes #{이슈 번호}

.github/workflows/pr-workflow.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: MarineLeisure Pull Request Script -Test & Image build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
env:
7+
REGISTRY: ghcr.io
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
jobs:
11+
codetest:
12+
name: 코드 테스트
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: branch checkout
17+
uses: actions/checkout@v4
18+
19+
- name: JDK setting
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
25+
- name: set Permission
26+
run: chmod +x ./gradlew
27+
28+
- name: do test
29+
run: ./gradlew test --no-daemon
30+
31+
tagging:
32+
name: 태깅 및 릴리즈
33+
runs-on: ubuntu-latest
34+
outputs:
35+
tag_name: ${{ steps.tag_version.outputs.new_tag }}
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: versioning and tagging
41+
id: tag_version
42+
uses: mathieudutour/[email protected]
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: releasing
47+
uses: ncipollo/release-action@v1
48+
with:
49+
tag: ${{ steps.tag_version.outputs.new_tag }}
50+
name: ${{ steps.tag_version.outputs.new_tag }}
51+
body: ${{ steps.tag_version.outputs.changelog }}
52+
build-image:
53+
name: 도커 이미지 빌드
54+
runs-on: ubuntu-latest
55+
needs: [ codetest,tagging ]
56+
57+
permissions:
58+
contents: read
59+
packages: write
60+
attestations: write
61+
id-token: write
62+
63+
steps:
64+
65+
- name: Check out Repository
66+
uses: actions/checkout@v4
67+
68+
- name: Sign in github container registry
69+
uses: docker/login-action@v3
70+
with:
71+
registry: ${{env.REGISTRY}}
72+
username: ${{github.actor}}
73+
password: ${{secrets.GITHUB_TOKEN}}
74+
- name: Extract metadata
75+
uses: docker/metadata-action@v5
76+
with:
77+
images: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}
78+
tags:
79+
type=sha
80+
type=raw,value=${{needs.tagging.outputs.tag_name}}
81+
type=raw,value=latest
82+
83+
- name: Build and Push Image
84+
uses: docker/build-push-action@v6
85+
with:
86+
context: .
87+
push: 'true'
88+
tags: ${{steps.meta.outputs.tags}}
89+
labels: ${{steps.meta.outputs.labels}}

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/
38+
39+
### Environment Variables ###
40+
.env
41+
.env.*
42+
*.env
43+
env.properties
44+
application-secrets.yml
45+
application-secrets.properties
46+
47+
### Application Properties ###
48+
WEB5_7_7STARBALL_BE/src/main/resources/application-*.yml
49+
/src/main/resources/application-local.yml
50+
/src/main/resources/application-dev.yml
51+

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM gradle:jdk21 as builder
2+
3+
WORKDIR /libs
4+
5+
COPY gradlew .
6+
COPY gradle gradle
7+
COPY build.gradle .
8+
COPY settings.gradle .
9+
10+
RUN ./gradlew dependencies --no-daemon || true
11+
12+
COPY src src
13+
14+
RUN ./gradlew build --no-daemon -x test
15+
16+
FROM openjdk:21-slim
17+
18+
WORKDIR /app
19+
20+
COPY --from=builder /libs/build/libs/*.jar app.jar
21+
22+
ENTRYPOINT [ "java", "-Dspring.profiles.active=prod" , "-jar", "app.jar" ]
23+
24+
25+

0 commit comments

Comments
 (0)