Skip to content

Commit

Permalink
merge: [FE] 릴리즈 머지 (#260)
Browse files Browse the repository at this point in the history
merge: [FE] 릴리즈 머지 (#260)
  • Loading branch information
d0422 authored Dec 14, 2023
2 parents 3d46969 + 532a909 commit e2729df
Show file tree
Hide file tree
Showing 380 changed files with 46,674 additions and 1,031 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/back-api-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: backEnd API server CD
on:
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
api-server-cd:
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: "20"

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/api
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/api
run: npm run build

- name: 🐳 도커 로그인
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_TOKEN}}

- name: ⬆️ Docker Image Build
working-directory: ./backEnd/api
run: |
docker build -t ${{secrets.DOCKER_USERNAME}}/api .
docker push ${{secrets.DOCKER_USERNAME}}/api
- name: 🏃‍♂️ Deploy
uses: appleboy/[email protected]
with:
host: ${{secrets.API_HOST}}
username: ${{secrets.API_USERNAME}}
password: ${{secrets.API_PASSWORD}}
port: ${{secrets.API_PORT}}
script: |
cd /root
echo "${{secrets.API_ENV}}" > .env
bash deploy.sh >> /dev/deploy.log 2>&1
31 changes: 31 additions & 0 deletions .github/workflows/back-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: backEnd API server CI
on:
pull_request:
branches: [BE/release, dev, main]

permissions:
contents: read

jobs:
api-server-ci:
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name : 👻 노드 설정
uses : actions/setup-node@v3
with:
node-version: '20'

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/api
run: npm install

- name: ✅ 유닛 테스트
working-directory: ./backEnd/api
run: npm test

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/api
run: npm run build
53 changes: 53 additions & 0 deletions .github/workflows/back-center-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: backEnd center server CD

on:
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
center-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/center
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/center
run: npm run build

- name: 🐳 도커 로그인
working-directory: ./backEnd/center
run: |
docker login -u ${{ secrets.DOCKER_CENTER_USERNAME }} -p ${{ secrets.DOCKER_CENTER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_CENTER_REPO }}/center .
docker push ${{ secrets.DOCKER_CENTER_REPO }}/center
- name: 🏃‍♂️Deploy
uses: appleboy/[email protected]
with:
host: ${{secrets.CENTER_HOST}}
username: ${{secrets.CENTER_USERNAME}}
key: ${{ secrets.CENTER_PASSWORD }}
script: |
echo "PORT=${{ secrets.CENTER_SERVER_PORT }}" > /root/.env
echo "ALLOWED_ORIGIN=${{ secrets.CENTER_ALLOWED_ORIGIN }}" >> /root/.env
echo "NODE_ENV=production" >> /root/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> /root/.env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> /root/.env
echo "REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" >> /root/.env
echo "CHAT_SOCKET_URL=${{ secrets.CHAT_SOCKET_URL }}" >> /root/.env
echo "SIGNAL_SOCKET_URL=${{ secrets.SERVER_A_SOCKET_URL }}" >> /root/.env
./deploy.sh
29 changes: 29 additions & 0 deletions .github/workflows/back-center-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: backEnd center server CI

on:
pull_request:
branches: [BE/release, dev, main]

permissions:
contents: read

jobs:
center-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/center
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/center
run: npm run build
60 changes: 60 additions & 0 deletions .github/workflows/back-chat-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: backEnd chat server CD

on:
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
chat-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/chat
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/chat
run: npm run build

- name: 🐳 도커 로그인
working-directory: ./backEnd/chat
run: |
docker login -u ${{ secrets.DOCKER_CHAT_USERNAME }} -p ${{ secrets.DOCKER_CHAT_PASSWORD }}
docker build -t ${{ secrets.DOCKER_CHAT_REPO }}/chat .
docker push ${{ secrets.DOCKER_CHAT_REPO }}/chat
- name: 🏃‍♂️Deploy
uses: appleboy/[email protected]
with:
host: ${{secrets.CHAT_HOST}}
username: ${{secrets.CHAT_USERNAME}}
password: ${{secrets.CHAT_PASSWORD}}
port: ${{secrets.CHAT_PORT}}
script: |
echo "PORT=${{ secrets.CHAT_SERVER_PORT }}" > /root/.env
echo "ALLOWED_ORIGIN=${{ secrets.CHAT_ALLOWED_ORIGIN }}" >> /root/.env
echo "NODE_ENV=production" >> /root/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> /root/.env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> /root/.env
echo "REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" >> /root/.env
echo "LLM_URL=${{ secrets.LLM_URL }}" >> /root/.env
echo "CLOVASTUDIO=${{ secrets.CLOVASTUDIO }}" >> /root/.env
echo "APIGW=${{ secrets.APIGW }}" >> /root/.env
echo "REQUESTID=${{ secrets.REQUESTID }}" >> /root/.env
echo "Accept=${{ secrets.Accept }}" >> /root/.env
echo "ContentType=${{ secrets.ContentType }}" >> /root/.env
echo "MONGO_PROD=${{ secrets.MONGO_PROD }}" >> /root/.env
echo "SOCKET_URL=${{ secrets.CHAT_SOCKET_URL }}" >> /root/.env
./deploy.sh
29 changes: 29 additions & 0 deletions .github/workflows/back-chat-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: backEnd chat server CI

on:
pull_request:
branches: [BE/release, dev, main]

permissions:
contents: read

jobs:
chat-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/chat
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/chat
run: npm run build
53 changes: 53 additions & 0 deletions .github/workflows/back-running-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: backEnd running server CD

on:
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
running-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/running
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/running
run: npm run build

- name: 🐳 도커 로그인
working-directory: ./backEnd/running
run: |
docker login -u ${{ secrets.DOCKER_RUNNING_USERNAME }} -p ${{ secrets.DOCKER_RUNNING_PASSWORD }}
docker build -t ${{ secrets.DOCKER_RUNNING_REPO }}/running .
docker push ${{ secrets.DOCKER_RUNNING_REPO }}/running
- name: 🏃‍♂️Deploy
uses: appleboy/[email protected]
with:
host: ${{secrets.RUNNING_HOST}}
username: ${{secrets.RUNNING_USERNAME}}
password: ${{secrets.RUNNING_PASSWORD}}
port: ${{secrets.RUNNING_PORT}}
script: |
echo "PORT=${{ secrets.RUNNING_SERVER_PORT }}" > /root/.env
echo "ALLOWED_ORIGIN=${{ secrets.RUNNING_ALLOWED_ORIGIN }}" >> /root/.env
echo "WEB_HOOK_URL=${{ secrets.WEB_HOOK_URL }}" >> /root/.env
echo "NODE_ENV=production" >> /root/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> /root/.env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> /root/.env
echo "REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" >> /root/.env
./deploy.sh
29 changes: 29 additions & 0 deletions .github/workflows/back-running-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: backEnd running server CI

on:
pull_request:
branches: [BE/release, dev, main]

permissions:
contents: read

jobs:
running-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/running
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/running
run: npm run build
53 changes: 53 additions & 0 deletions .github/workflows/back-signaling-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: backEnd signaling server CD

on:
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
signaling-server:
runs-on: ubuntu-latest

steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name: 👻 노드 설정
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/signaling
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/signaling
run: npm run build

- name: 🐳 도커 로그인
working-directory: ./backEnd/signaling
run: |
docker login -u ${{ secrets.DOCKER_SIGNALING_USERNAME }} -p ${{ secrets.DOCKER_SIGNALING_PASSWORD }}
docker build -t ${{ secrets.DOCKER_SIGNALING_REPO }}/signaling .
docker push ${{ secrets.DOCKER_SIGNALING_REPO }}/signaling
- name: 🏃‍♂️Deploy
uses: appleboy/[email protected]
with:
host: ${{secrets.SIGNALING_HOST}}
username: ${{secrets.SIGNALING_USERNAME}}
password: ${{secrets.SIGNALING_PASSWORD}}
port: ${{secrets.SIGNALING_PORT}}
script: |
echo "PORT=${{ secrets.SIGNALING_SERVER_PORT }}" > /root/.env
echo "ALLOWED_ORIGIN=${{ secrets.SIGNALING_ALLOWED_ORIGIN }}" >> /root/.env
echo "SOCKET_URL=${{ secrets.SERVER_A_SOCKET_URL }}" >> /root/.env
echo "NODE_ENV=production" >> /root/.env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> /root/.env
echo "REDIS_PORT=${{ secrets.REDIS_PORT }}" >> /root/.env
echo "REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" >> /root/.env
./deploy.sh
Loading

0 comments on commit e2729df

Please sign in to comment.