Skip to content

Commit 659f23b

Browse files
sonjusunsonjusun
authored andcommitted
Merge branch 'prod' into dev
2 parents 3fa0bae + d547fe3 commit 659f23b

File tree

3 files changed

+43
-29
lines changed

3 files changed

+43
-29
lines changed

.github/workflows/prod-cd.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# .github/workflows/prod-cd.yml
2-
name: CD for Prod
2+
name: CD For Prod
33

44
on:
55
push:
@@ -52,7 +52,22 @@ jobs:
5252
5353
- name: Create IAP .p8 Key
5454
run: |
55-
echo "${{ secrets.APPLE_IAP_KEY }}" > ./src/main/resources/keys/${{ secrets.APPLE_IAP_KEY_NAME }}
55+
echo "${{ secrets.APPLE_IAP_KEY_PROD }}" > ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8
56+
57+
# 키 파일 크기 확인 (내용은 로그에 출력하지 않음)
58+
if [ -s "./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8" ]; then
59+
echo "✅ IAP key file created: $(wc -c < ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8) bytes"
60+
else
61+
echo "❌ IAP key file is empty!"
62+
exit 1
63+
fi
64+
65+
# PEM 형식 확인
66+
if grep -q "BEGIN PRIVATE KEY" ./src/main/resources/keys/SubscriptionKey_62QGYSCKW2.p8; then
67+
echo "✅ IAP key file appears to be in PEM format"
68+
else
69+
echo "⚠️ IAP key file may not be in PEM format"
70+
fi
5671
shell: bash
5772
# APPLE IN_APP 결제 관련 프로세스 끝
5873

@@ -71,17 +86,17 @@ jobs:
7186
push: true
7287
tags: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_PROD }}
7388

74-
- name: Deploy to Prod
89+
- name: Deploy to Prod!
7590
uses: appleboy/[email protected]
7691
with:
7792
host: ${{ secrets.EC2_HOST_PROD }}
7893
username: ${{ secrets.EC2_USERNAME_PROD }}
7994
key: ${{ secrets.EC2_PRIVATE_KEY_PROD }}
8095
script: |
8196
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_PROD }}
82-
chmod 777 ./deploy.sh
97+
sudo chmod 777 ./deploy.sh
8398
./deploy.sh
84-
docker image prune -f
99+
sudo docker image prune -f
85100
86101
create-release:
87102
needs: build

Dockerfile-prod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM openjdk:17-jdk
22

33
ARG JAR_FILE=./build/libs/juinjang-0.0.1-SNAPSHOT.jar
44
COPY ${JAR_FILE} app.jar
5-
ENTRYPOINT [ "java", "-jar", "-Dspring.profiles.active=prod", "/app.jar" ]
5+
6+
ENTRYPOINT ["java", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/var/heapdumps/juinjang", "-Dspring.profiles.active=prod", "-jar", "/app.jar"]
67

78

89

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
1+
# About 주인장 버전 v1.2.0
12

2-
# About 주인장
33
![주인장기획서이미지](https://github.com/user-attachments/assets/b2e72c8f-0425-4571-946e-866cf56704ac)
44

55
# Backend Team
66

7-
| 코난 ([hyeonahhh](https://github.com/hyeonahhh)) | 시니 ([2hy2on](https://github.com/2hy2on)) | 여니 ([yeon015](https://github.com/yeon015)) | 진 ([PicturePark1101](https://github.com/PicturePark1101)) |
8-
|--------------------------------------------------|--------------------------------------------|---------------------------------------------|----------------------------------------------------------|
7+
| 코난 ([hyeonahhh](https://github.com/hyeonahhh)) | 시니 ([2hy2on](https://github.com/2hy2on)) | 여니 ([yeon015](https://github.com/yeon015)) | 진 ([PicturePark1101](https://github.com/PicturePark1101)) |
8+
|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
99
| <img src="https://github.com/user-attachments/assets/f9cf4cdb-0e39-4b53-aa2d-92bb5e81bb72" width="300"/> | <img src="https://github.com/user-attachments/assets/9f41cd55-0b63-4bfb-b91c-4f6473548122" width="300"/> | <img src="https://github.com/user-attachments/assets/153a7961-97fa-46da-87d0-214f52710ac3" width="300"/> | <img src="https://github.com/user-attachments/assets/50e1e9fd-d687-4416-81ed-950105551a74" width="300"/> |
10-
| ● 녹음 관련 API <br> ● 체크리스트 관련 API| ● Spring Security, JWT 기반 인가 인증 구현<br> ● Oauth 연동 Kakao, Apple 로그인 구현 <br> ●CI/CD 구축| ● Spring Security, JWT 기반 인가 인증 구현<br> ● Oauth 연동 Kakao, Apple 로그인 구현 |● 임장 관련 API<br> ● Prometheus & Grafana 기반 모니터링 구축|
11-
12-
10+
| ● 녹음 관련 API <br> ● 체크리스트 관련 API | ● Spring Security, JWT 기반 인가 인증 구현<br> ● Oauth 연동 Kakao, Apple 로그인 구현 <br> ●CI/CD 구축 | ● Spring Security, JWT 기반 인가 인증 구현<br> ● Oauth 연동 Kakao, Apple 로그인 구현 | ● 임장 관련 API<br> ● Prometheus & Grafana 기반 모니터링 구축 |
1311

1412
# Architecture
13+
1514
![아키텍쳐22](https://github.com/user-attachments/assets/29561ca0-7194-4ac9-aa65-1a04cad7e410)
1615

1716
# Stack
18-
![주인장리드미](https://github.com/user-attachments/assets/e57dbed8-d923-40f6-91cc-04ecda91f96b)
1917

18+
![주인장리드미](https://github.com/user-attachments/assets/e57dbed8-d923-40f6-91cc-04ecda91f96b)
2019

2120
# Convention
2221

2322
## tag type
2423

25-
| 유형 | 설명 |
26-
|------------|----------------------------------------------------------------------|
27-
| **add** | 새로운 파일 추가 |
28-
| **feat** | 만들어진 파일에 새로운 기능 추가, 수정. 기존 기능을 요구 사항에 맞게 수정 |
29-
| **fix** | 기능에 대한 버그 수정 |
30-
| **build** | 빌드 관련 수정 |
31-
| **chore** | 패키지 매니저 수정, 기타 수정 (ex: `.gitignore`) |
32-
| **ci** | CI 관련 설정 수정 |
33-
| **docs** | 문서 수정 |
34-
| **comment**| 주석 추가 |
35-
| **style** | 코드 스타일, 포매팅 관련 수정 |
36-
| **refactor**| 기능 변화 없이 코드 리팩터링 (ex: 변수 이름 변경) |
37-
| **test** | 테스트 코드 추가/수정 |
38-
| **release**| 버전 릴리즈 |
39-
| **remove** | 코드 또는 파일, 리소스 제거
40-
24+
| 유형 | 설명 |
25+
|--------------|---------------------------------------------|
26+
| **add** | 새로운 파일 추가 |
27+
| **feat** | 만들어진 파일에 새로운 기능 추가, 수정. 기존 기능을 요구 사항에 맞게 수정 |
28+
| **fix** | 기능에 대한 버그 수정 |
29+
| **build** | 빌드 관련 수정 |
30+
| **chore** | 패키지 매니저 수정, 기타 수정 (ex: `.gitignore`) |
31+
| **ci** | CI 관련 설정 수정 |
32+
| **docs** | 문서 수정 |
33+
| **comment** | 주석 추가 |
34+
| **style** | 코드 스타일, 포매팅 관련 수정 |
35+
| **refactor** | 기능 변화 없이 코드 리팩터링 (ex: 변수 이름 변경) |
36+
| **test** | 테스트 코드 추가/수정 |
37+
| **release** | 버전 릴리즈 |
38+
| **remove** | 코드 또는 파일, 리소스 제거
4139

4240
## Commit message
4341

0 commit comments

Comments
 (0)