Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy: Vite CORS 설정 추가 배포 #81

Merged
merged 31 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
63e477f
style : 전역 디자인 시스템 세팅
judahhh Oct 23, 2023
d8fdea9
style : 전역 디자인 시스템 세팅
judahhh Oct 23, 2023
35f7d92
chore : 이슈 템플릿 수정
judahhh Oct 23, 2023
d50f560
refactor: build-test.yml 파일 수정 (#14)
wukdddang Oct 24, 2023
7aacb40
feature: deploy.yml 파일 추가 (#15)
wukdddang Oct 24, 2023
eece071
[Style] 모바일 레이아웃 작업 (#19)
judahhh Oct 24, 2023
e0039d9
style: HeroImage, AlertText 공통 컴포넌트 제작 (#24)
from1to2 Oct 25, 2023
f7cc442
style: Input 공통 컴포넌트 (#26)
from1to2 Oct 25, 2023
0dd38b2
feature: Button 공통 컴포넌트 제작 (#20)
wukdddang Oct 25, 2023
2a7eb36
style : flexbox 컴포넌트 제작 (#32)
judahhh Oct 26, 2023
230613f
style : spacing 컴포넌트 생성 (#33)
judahhh Oct 26, 2023
cb42a5a
[Feature] mock service worker settings (#29)
judahhh Oct 26, 2023
0b837a1
style: BottomSheet 컴포넌트 제작 (#34)
wukdddang Oct 26, 2023
ccca7bb
[Style/] navigation bar 컴포넌트 제작 (#37)
judahhh Oct 26, 2023
b44914c
style: CountNumber 공통 컴포넌트 제작 (#38)
from1to2 Oct 26, 2023
7f3ccff
chore : CountNumber 폴더 구조 변경
judahhh Oct 26, 2023
a93ba29
style: InputTimer 공통 컴포넌트 제작 (#41)
from1to2 Oct 26, 2023
386f00d
style : 로딩 컴포넌트 제작 (#47)
judahhh Oct 27, 2023
ff1ffbf
style: WhiteSelectorButton, DarkSelectorButton 공통 컴포넌트 (#46)
from1to2 Oct 27, 2023
f24a9b6
style: ListRow 컴포넌트 제작 (#43)
wukdddang Oct 30, 2023
cc07575
style: useToast 커스텀 훅 제작 (#48)
wukdddang Oct 30, 2023
1560475
[Style] Modal 컴포넌트 제작 (#52)
judahhh Oct 30, 2023
2099b00
style: selector button 공통 컴포넌트 (#55)
from1to2 Oct 31, 2023
c219120
style: Appbar, Card, GradationBackground, PageContainer 컴포넌트 추가 + Hom…
wukdddang Oct 31, 2023
f29d741
style: PageHeader 컴포넌트 제작 (#59)
wukdddang Oct 31, 2023
78c0f0d
[Style] chatting bubble 컴포넌트 제작 및 소켓 라이브러리 설치 (#65)
judahhh Nov 1, 2023
de5f268
style: BusinessCardContainer 공통 컴포넌트 (재PR) (#62)
from1to2 Nov 1, 2023
fb88c7d
test: API Test 코드 (#76)
from1to2 Nov 2, 2023
7d6c994
test: retest (#78)
from1to2 Nov 2, 2023
03a429c
fix: vite 설정 (cors) (#80)
from1to2 Nov 2, 2023
36bda4f
Merge branch 'main' into fix/merge-conflict-vite-cors
wukdddang Nov 2, 2023
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
18 changes: 5 additions & 13 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
---
name: bug
about: 버그를 수정합니다
title: ''
labels: ''
assignees: ''

---

---
name: bug issue template
about: 'about need to fix bug'
title: "🐛 [Bug] "
name: Bug Issue Template
about: '버그를 수정합니다!'
title: '🐛 [Bug] '
labels: Bug
assignees: ''

---

## 🛠️ 어떤 버그를 고치나요?

## 버그 작업 브랜치

## ☑ Bug Fix TODOS
- [x] 작업
- [ ] 작업
18 changes: 5 additions & 13 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
---
name: feature
about: 기능을 추가합니다
title: ''
labels: ''
assignees: ''

---

---
name: feature request template
about: feature
title: "🚀 [Feature] "
name: Feature issue template
about: 새로운 기능을 추가합니다!
title: '🚀 [Feature] '
labels: Feature
assignees: ''

---

## 🚀 어떤 기능을 만드나요?

## 작업 중인 브랜치

## ☑ Implement TODO
- [x] 작업
- [ ] 작업
17 changes: 5 additions & 12 deletions .github/ISSUE_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
---
name: refactor
about: 코드를 리팩토링합니다
title: ''
labels: ''
name: Refactor Issue Template
about: '리팩토링이 필요한 코드를 수정합니다!'
title: '🔨 [Refactor] '
labels: 'Refactor'
assignees: ''

---

---
name: refactor issue template
about: 'about need to refactor '
title: " [Refactor] "
labels: Refactor
assignees: ''

---
## 🛠️ 리팩토링이 필요한 부분

## 리팩토링 작업 브랜치

## ☑ Refactoring TODO
- [x] 작업
- [ ] 작업
17 changes: 5 additions & 12 deletions .github/ISSUE_TEMPLATE/style.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
---
name: style
about: 애플리케이션을 디자인합니다.
title: ''
labels: ''
name: Style Issue Template
about: '새로운 디자인을 만듭니다!'
title: '💄 [Style] '
labels: 'Style'
assignees: ''

---

---
name: style issue template
about: 'make Style Component'
title: "💄 [Style] "
labels: Style
assignees: ''

---
## ✨ 어떤 Style 작업인가요?

## 스타일 작업 브랜치

## ☑ Style TODO
- [x] 작업
- [ ] 작업
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ close: #

## 작업 내용 설명
<!-- 스크린샷 및 작업내용을 적어주세요 -->
- [x] 작업
-
## 리뷰어에게 한마디
<!-- 리뷰어들이 참고해야 하는 사항을 적어주세요 -->
26 changes: 21 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,41 @@ name: Build Test

on:
push:
branches: [main]
branches: [main, dev]
pull_request:
branches: [main]
branches: [main, dev]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
# cache의 대상을 정합니다. npm에서 의존성이 설치되는 디렉터리인 node_modules를 대상으로 합니다.
path: '**/node_modules'
# cache를 무효화하를 결정하는 기준은 의존성이 변경되면 함께 변경되는 파일인 package-lock.json을 기준으로 합니다.
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# key가 유효하지 않은 경우 runner의 운영체제 값과 node라는 suffix를 key로 복구합니다.
# 결과적으로 package-lock.json이 변경되지 않았다면 캐싱된 node_modules를 사용합니다.
# 만약 복구될 캐시가 없다면 아래에서 사용할 cache-hit는 false가 됩니다.
restore-keys: |
${{ runner.os }}-node-

- name: Install Dependencies
# 이전의 cache가 없다면 의존성을 설치합니다.
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build React app
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CD

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
# cache의 대상을 정합니다. npm에서 의존성이 설치되는 디렉터리인 node_modules를 대상으로 합니다.
path: '**/node_modules'
# cache를 무효화하를 결정하는 기준은 의존성이 변경되면 함께 변경되는 파일인 package-lock.json을 기준으로 합니다.
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# key가 유효하지 않은 경우 runner의 운영체제 값과 node라는 suffix를 key로 복구합니다.
# 결과적으로 package-lock.json이 변경되지 않았다면 캐싱된 node_modules를 사용합니다.
# 만약 복구될 캐시가 없다면 아래에서 사용할 cache-hit는 false가 됩니다.
restore-keys: |
${{ runner.os }}-node-

- name: Install Dependencies
# 이전의 cache가 없다면 의존성을 설치합니다.
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build React app
run: npm run build

- name: S3 Deploy
run: aws s3 sync ./dist s3://coffee-meet-frontend-s3/ --acl bucket-owner-full-control # 현재 build된 폴더에 접근 후 s3 버킷인 coffee-meet-frontend-s3에 파일 업로드
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
- name: Invalidate CloudFront Cache # 새로 리소스를 업데이트할 때 기존 캐시 무효화
uses: chetan/invalidate-cloudfront-action@master
env:
AWS_DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION_ID }}
PATHS: '/index.html'
continue-on-error: true
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm install
npm run lint
npm run build
rm -rf dist
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!doctype html>
<html lang="en">
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="mobile-web-app-capable" content="yes">
<link rel="manifest" href="/manifest.json">
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>CoffeeMeet</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading