Skip to content

Commit

Permalink
Merge pull request #437 from boostcampwm-2022/dev
Browse files Browse the repository at this point in the history
실서버에 v1.0.1 버전을 배포합니다.
  • Loading branch information
WOOSERK authored Dec 14, 2022
2 parents b68f070 + 8417b19 commit d6e8751
Show file tree
Hide file tree
Showing 42 changed files with 1,689 additions and 919 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/deployment-dev-api-server.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/deployment-dev-client.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/deployment-dev-scheduler-server.yml

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/deployment-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: "[CD] DEV"

on:
push:
branches:
- dev
workflow_dispatch:

jobs:
path-check:
runs-on: ubuntu-20.04
outputs:
client: ${{ steps.filter.outputs.client }}
server: ${{ steps.filter.outputs.server }}
scheduler-server: ${{ steps.filter.outputs.scheduler-server }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
ref: ${{ github.head_ref }}
filters: |
client:
- 'client/**'
server:
- 'server/**'
scheduler-server:
- 'scheduler-server/**'
client:
needs: path-check
if: ${{ needs.path-check.outputs.client == 'true' }}
uses: ./.github/workflows/reusable-deployment-client.yml
with:
bucket-name: weview-dev
secrets:
VITE_SERVER_URL: ${{ secrets.DEV_VITE_SERVER_URL }}
VITE_LOCAL_URL: ${{ secrets.DEV_VITE_LOCAL_URL }}
VITE_GITHUB_AUTH_SERVER_URL: ${{ secrets.DEV_VITE_GITHUB_AUTH_SERVER_URL }}
VITE_API_MODE: ${{ secrets.DEV_VITE_API_MODE }}
NCLOUD_BUCKET_ACCESS_KEY: ${{ secrets.DEV_NCLOUD_BUCKET_ACCESS_KEY }}
NCLOUD_BUCKET_SECRET_KEY: ${{ secrets.DEV_NCLOUD_BUCKET_SECRET_KEY }}
NCLOUD_HOST: ${{ secrets.DEV_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.DEV_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.DEV_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.DEV_NCLOUD_PORT }}

server:
needs: path-check
if: ${{ needs.path-check.outputs.server == 'true' }}
uses: ./.github/workflows/reusable-deployment-server.yml
with:
docker-context: server
docker-image-name: weview-dev
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
NCLOUD_HOST: ${{ secrets.DEV_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.DEV_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.DEV_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.DEV_NCLOUD_PORT }}

scheduler-server:
needs: path-check
if: ${{ needs.path-check.outputs.scheduler-server == 'true' }}
uses: ./.github/workflows/reusable-deployment-server.yml
with:
docker-context: scheduler-server
docker-image-name: weview-scheduler-dev
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
NCLOUD_HOST: ${{ secrets.DEV_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.DEV_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.DEV_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.DEV_NCLOUD_PORT }}
22 changes: 0 additions & 22 deletions .github/workflows/deployment-main-api-server.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/deployment-main-client.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/deployment-main-scheduler-server.yml

This file was deleted.

78 changes: 78 additions & 0 deletions .github/workflows/deployment-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: "[CD] MAIN"
on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
path-check:
runs-on: ubuntu-20.04
outputs:
client: ${{ steps.filter.outputs.client }}
server: ${{ steps.filter.outputs.server }}
scheduler-server: ${{ steps.filter.outputs.scheduler-server }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
ref: ${{ github.head_ref }}
filters: |
client:
- 'client/**'
server:
- 'server/**'
scheduler-server:
- 'scheduler-server/**'
client:
needs: path-check
if: ${{ needs.path-check.outputs.client == 'true' }}
uses: ./.github/workflows/reusable-deployment-client.yml
with:
bucket-name: weview
secrets:
VITE_SERVER_URL: ${{ secrets.MAIN_VITE_SERVER_URL }}
VITE_LOCAL_URL: ${{ secrets.MAIN_VITE_LOCAL_URL }}
VITE_GITHUB_AUTH_SERVER_URL: ${{ secrets.MAIN_VITE_GITHUB_AUTH_SERVER_URL }}
VITE_API_MODE: ${{ secrets.MAIN_VITE_API_MODE }}
NCLOUD_BUCKET_ACCESS_KEY: ${{ secrets.MAIN_NCLOUD_BUCKET_ACCESS_KEY }}
NCLOUD_BUCKET_SECRET_KEY: ${{ secrets.MAIN_NCLOUD_BUCKET_SECRET_KEY }}
NCLOUD_HOST: ${{ secrets.MAIN_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.MAIN_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.MAIN_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.MAIN_NCLOUD_PORT }}

server:
needs: path-check
if: ${{ needs.path-check.outputs.server == 'true' }}
uses: ./.github/workflows/reusable-deployment-server.yml
with:
docker-context: server
docker-image-name: weview-main
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
NCLOUD_HOST: ${{ secrets.MAIN_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.MAIN_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.MAIN_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.MAIN_NCLOUD_PORT }}

scheduler-server:
needs: path-check
if: ${{ needs.path-check.outputs.scheduler-server == 'true' }}
uses: ./.github/workflows/reusable-deployment-server.yml
with:
docker-context: scheduler-server
docker-image-name: weview-scheduler-main
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
NCLOUD_HOST: ${{ secrets.MAIN_NCLOUD_HOST }}
NCLOUD_USERNAME: ${{ secrets.MAIN_NCLOUD_USERNAME }}
NCLOUD_PASSWORD: ${{ secrets.MAIN_NCLOUD_PASSWORD }}
NCLOUD_PORT: ${{ secrets.MAIN_NCLOUD_PORT }}
13 changes: 0 additions & 13 deletions .github/workflows/integration-api-server.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/integration-client.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/integration-scheduler-server.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

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

jobs:
path-check:
runs-on: ubuntu-20.04
outputs:
client: ${{ steps.filter.outputs.client }}
server: ${{ steps.filter.outputs.server }}
scheduler-server: ${{ steps.filter.outputs.scheduler-server }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
ref: ${{ github.head_ref }}
filters: |
client:
- 'client/**'
server:
- 'server/**'
scheduler-server:
- 'scheduler-server/**'
client:
needs: path-check
if: ${{ needs.path-check.outputs.client == 'true' }}
uses: ./.github/workflows/reusable-integration.yml
with:
working-directory: client

server:
needs: path-check
if: ${{ needs.path-check.outputs.server == 'true' }}
uses: ./.github/workflows/reusable-integration.yml
with:
working-directory: server

scheduler-server:
needs: path-check
if: ${{ needs.path-check.outputs.scheduler-server == 'true' }}
uses: ./.github/workflows/reusable-integration.yml
with:
working-directory: scheduler-server
Loading

0 comments on commit d6e8751

Please sign in to comment.