Skip to content

Commit 27b5ba1

Browse files
authored
Merge pull request #52 from Catch-Live/dev
release: Merge to main
2 parents ee00d55 + f562007 commit 27b5ba1

File tree

125 files changed

+8888
-941
lines changed

Some content is hidden

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

125 files changed

+8888
-941
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI/CD client to AWS S3
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 코드 체크아웃
17+
uses: actions/checkout@v3
18+
19+
- name: AWS IAM 사용자 설정
20+
uses: aws-actions/configure-aws-credentials@v2
21+
with:
22+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
23+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
24+
aws-region: ${{ secrets.AWS_REGION }}
25+
26+
- name: 리액트 빌드
27+
run: |
28+
npm install
29+
npm run build
30+
env:
31+
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
32+
VITE_KAKAO_CLIENT_ID: ${{ secrets.VITE_KAKAO_CLIENT_ID }}
33+
VITE_KAKAO_REDIRECT_URI: ${{ secrets.VITE_KAKAO_REDIRECT_URI }}
34+
VITE_NAVER_CLIENT_ID: ${{ secrets.VITE_NAVER_CLIENT_ID }}
35+
VITE_NAVER_REDIRECT_URI: ${{ secrets.VITE_NAVER_REDIRECT_URI }}
36+
VITE_NAVER_STATE: ${{ secrets.VITE_NAVER_STATE }}
37+
VITE_GOOGLE_CLIENT_ID: ${{ secrets.VITE_GOOGLE_CLIENT_ID }}
38+
VITE_GOOGLE_REDIRECT_URI: ${{ secrets.VITE_GOOGLE_REDIRECT_URI }}
39+
40+
- name: 빌드한 파일 S3에 업로드
41+
run: aws s3 sync dist/ s3://${{ secrets.S3_BUCKET_NAME }}
42+
env:
43+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
44+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
45+
46+
- name: CloudFront 캐시 무력화 설정
47+
uses: chetan/invalidate-cloudfront-action@v2
48+
env:
49+
DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
50+
PATHS: '/*'
51+
AWS_REGION: ${{ secrets.AWS_REGION }}
52+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# Ignore env files
27+
.env
28+
.env.*

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "es5",
7+
"arrowParens": "always",
8+
"endOfLine": "lf"
9+
}

README.md

Lines changed: 425 additions & 51 deletions
Large diffs are not rendered by default.

commitlint.config.cjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
const TYPES = [
2+
'feat',
3+
'fix',
4+
'design',
5+
'hotfix',
6+
'style',
7+
'refactor',
8+
'comment',
9+
'docs',
10+
'test',
11+
'chore',
12+
'rename',
13+
'remove',
14+
];
15+
16+
module.exports = {
17+
plugins: [
18+
{
19+
rules: {
20+
commit_message_pattern: ({ raw }) => {
21+
const messageType = raw.split(': ')[0];
22+
const checkResult = TYPES.includes(messageType);
23+
if (!checkResult) {
24+
return [
25+
false,
26+
'커밋 메시지는 지정된 타입: 내용 이어야 합니다. 타입명, :뒤에 공백 한칸을 체크해주세요',
27+
];
28+
}
29+
return [true, ''];
30+
},
31+
},
32+
},
33+
],
34+
rules: {
35+
commit_message_pattern: [2, 'always'],
36+
'subject-case': [
37+
2,
38+
'always',
39+
[
40+
'sentence-case',
41+
'start-case',
42+
'pascal-case',
43+
'upper-case',
44+
'lower-case',
45+
],
46+
],
47+
},
48+
};

docs/architecture.png

225 KB
Loading

docs/recording.png

205 KB
Loading

0 commit comments

Comments
 (0)