-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (63 loc) · 1.89 KB
/
ci-cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI/CD Pipeline
on:
push:
branches:
- main
- be-feat#46
jobs:
# 먼저 레포지토리 체크아웃
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
permissions:
packages: read
# 콘솔 서버 배포
deploy-console-server:
needs: setup
uses: ./.github/workflows/deploy-service.yml
with:
service: web35-watchducks
path: backend/console-server
source: "./web35-watchducks/backend/console-server/*.yml, ./web35-watchducks/backend/console-server/*.conf"
secrets:
user: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.CONSOLE_SERVER_HOST }}
env: ${{ secrets.CONSOLE_SERVER_ENV }}
tok: ${{secrets.GHCR_TOKEN}}
# 프록시 서버 배포
deploy-proxy-server:
needs: setup
uses: ./.github/workflows/deploy-service.yml
with:
service: web35-watchducks
path: backend/proxy-server
source: "./web35-watchducks/backend/proxy-server/*.yml"
use_host_nginx: true
secrets:
user: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.PROXY_SERVER_HOST }}
env: ${{ secrets.PROXY_SERVER_ENV }}
tok: ${{secrets.GHCR_TOKEN}}
# 네임서버 배포
deploy-name-server:
needs: setup
uses: ./.github/workflows/deploy-service.yml
with:
service: web35-watchducks
path: backend/name-server
source: "./web35-watchducks/backend/name-server/*.yml, ./web35-watchducks/backend/name-server/*.conf"
secrets:
user: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.NAME_SERVER_HOST }}
env: ${{ secrets.NAME_SERVER_ENV }}
tok: ${{secrets.GHCR_TOKEN}}