-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from boostcampwm-2022/dev
실서버에 0.2.0 버전을 배포합니다.
- Loading branch information
Showing
222 changed files
with
20,410 additions
and
1,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Dev Scheduler Server Auto Deploy" | ||
on: | ||
push: # dev 브랜치 & scheduler-server 경로에 push가 일어났을 때 발생한다 | ||
branches: | ||
- dev | ||
paths: | ||
- "scheduler-server/**" | ||
workflow_dispatch: # POST 요청 및 버튼 클릭 등 임의 (수동) 실행 | ||
|
||
jobs: | ||
deployment: | ||
name: deployment | ||
runs-on: ubuntu-18.04 | ||
defaults: | ||
run: | ||
working-directory: scheduler-server | ||
steps: # job 구동 과정 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | ||
|
||
- name: Build and Push Docker Image # 도커 허브에 이미지 push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: ./scheduler-server | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/weview-scheduler-dev:latest | ||
|
||
- name: Deploy with SSH | ||
uses: appleboy/ssh-action@master | ||
with: # 도커파일의 위치는 weview/server 위치 변경할지 고민해보기. | ||
host: ${{ secrets.DEV_NCLOUD_HOST }} | ||
username: ${{ secrets.DEV_NCLOUD_USERNAME }} | ||
password: ${{ secrets.DEV_NCLOUD_PASSWORD }} | ||
port: ${{ secrets.DEV_NCLOUD_PORT }} | ||
script: | | ||
cd /home/weview/server && docker compose pull | ||
cd /home/weview/server && docker compose up --detach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: "Main Scheduler Server Auto Deploy" | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
paths: | ||
- "scheduler-server/**" | ||
workflow_dispatch: | ||
jobs: | ||
deployment: | ||
name: deployment | ||
runs-on: ubuntu-18.04 | ||
defaults: | ||
run: | ||
working-directory: scheduler-server | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | ||
|
||
- name: Build and Push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: ./scheduler-server | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/weview-scheduler-main:latest | ||
${{ secrets.DOCKERHUB_USERNAME }}/weview-scheduler-main:${{github.ref_name}} | ||
- name: Deploy with SSH | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.MAIN_NCLOUD_HOST }} | ||
username: ${{ secrets.MAIN_NCLOUD_USERNAME }} | ||
password: ${{ secrets.MAIN_NCLOUD_PASSWORD }} | ||
port: ${{ secrets.MAIN_NCLOUD_PORT }} | ||
script: | | ||
cd /home/weview/server && docker compose pull | ||
cd /home/weview/server && docker compose up --detach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Scheduler Server Test Build (Pull Request)" | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "dev"] | ||
paths: | ||
- "scheduler-server/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
integration: # 식별자 | ||
name: integration #이름 | ||
runs-on: ubuntu-18.04 # Job 구동되는 환경 명시 | ||
defaults: | ||
run: | ||
working-directory: scheduler-server | ||
steps: # job 구동 과정 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node JS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16.x" | ||
|
||
- name: Install npm | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm test | ||
|
||
- name: Build Files | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
// fonts | ||
@import url("https://webfontworld.github.io/gmarket/GmarketSans.css"); | ||
/* | ||
* D2 coding (Korean) http://dev.naver.com/projects/d2coding/ | ||
*/ | ||
@font-face { | ||
font-family: "D2Coding"; | ||
font-style: normal; | ||
font-weight: normal; | ||
src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/D2Coding.woff") | ||
format("woff"); | ||
} | ||
|
||
// pages | ||
@import "@/styles/_global-style"; | ||
@import "@/styles/_theme"; | ||
@import "@/styles/global-style"; | ||
@import "@/styles/theme"; | ||
|
||
html, | ||
body { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import axiosInstance from "@/apis/axios"; | ||
|
||
export const addBookmarkPost = async (postId: string): Promise<void> => { | ||
await axiosInstance.post(`/bookmarks`, { | ||
postId, | ||
}); | ||
}; | ||
|
||
export const removeBookmarkPost = async (postId: string): Promise<void> => { | ||
await axiosInstance.delete(`/bookmarks?postId=${postId}`); | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.