Skip to content

Commit eae28e7

Browse files
authored
Merge pull request #544 from solid-connection/feat/release-university-deploy
chore: 대학 정보 릴리즈 타깃 추가
2 parents b3f301a + 6334f77 commit eae28e7

3 files changed

Lines changed: 49 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ on:
77
workflow_dispatch:
88
inputs:
99
target:
10-
description: "Promote target"
10+
description: "Promote target (both keeps the legacy web+admin selection)"
1111
required: true
12-
default: "both"
12+
default: "all"
1313
type: choice
1414
options:
15+
- all
1516
- both
1617
- web
1718
- admin
19+
- university
1820
force_redeploy:
1921
description: "When up to date, skip divergence and print manual redeploy guidance"
2022
required: true
@@ -71,6 +73,12 @@ jobs:
7173
admin)
7274
RELEASE_BRANCHES="release-admin"
7375
;;
76+
university)
77+
RELEASE_BRANCHES="release-university"
78+
;;
79+
all)
80+
RELEASE_BRANCHES="release-web release-admin release-university"
81+
;;
7482
both)
7583
RELEASE_BRANCHES="release-web release-admin"
7684
;;

docs/git-cicd.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,16 @@ GitHub Actions, Vercel를 사용하여 CI/CD를 관리합니다.
4141

4242
main 브랜치에 push가 되면 자동으로 CI가 진행되어 stage 환경에 배포됩니다.
4343

44-
Github Actions의 'Build and Vercel Production Deployment' 를 가동시키면 CD가 진행되어 production 환경에 배포됩니다.
44+
Github Actions의 `Promote Main to Release Branches`를 가동시키면 선택한 release branch가 main으로 갱신되고, 각 Vercel Project의 production 환경에 배포됩니다.
45+
46+
- `release-web`: web production 배포
47+
- `release-admin`: admin production 배포
48+
- `release-university`: university-web production 배포
49+
50+
릴리즈 workflow의 target은 다음과 같이 사용합니다.
51+
52+
- `all`: web, admin, university-web 전체 릴리즈
53+
- `both`: 기존 호환용 web + admin 릴리즈
54+
- `web`: web만 릴리즈
55+
- `admin`: admin만 릴리즈
56+
- `university`: university-web만 릴리즈

docs/university-multizone-deployment.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,32 @@ Vercel에서는 같은 Git repository를 두 개의 Project로 연결한다.
6363

6464
University project의 직접 배포 도메인은 검색엔진에 노출하지 않는다. 실제 사용자 URL은 main domain의 rewrite를 통해 제공한다.
6565

66+
## Release 배포
67+
68+
production 릴리즈는 GitHub Actions `Promote Main to Release Branches` workflow로 release branch를 갱신해 Vercel 배포를 트리거한다.
69+
70+
- Main Web Project production branch: `release-web`
71+
- Admin Project production branch: `release-admin`
72+
- University Web Project production branch: `release-university`
73+
74+
workflow target은 다음과 같이 사용한다.
75+
76+
- `all`: `release-web`, `release-admin`, `release-university`를 모두 main으로 갱신
77+
- `university`: `release-university`만 main으로 갱신
78+
- `both`: 기존 호환용으로 `release-web`, `release-admin`만 갱신
79+
80+
production web project의 `UNIVERSITY_WEB_DOMAIN`은 university web production origin을 가리켜야 한다. 예를 들어 사용자 production URL이 `https://www.solid-connection.com/university`라면 rewrite 대상은 별도 university web production origin이다.
81+
82+
```bash
83+
UNIVERSITY_WEB_DOMAIN=https://<university-web-production-origin>
84+
```
85+
86+
production university web project의 `NEXT_PUBLIC_WEB_URL`은 실제 사용자가 접근하는 main web production URL을 가리킨다.
87+
88+
```bash
89+
NEXT_PUBLIC_WEB_URL=https://www.solid-connection.com
90+
```
91+
6692
## Local Development
6793

6894
터미널 두 개에서 실행한다.

0 commit comments

Comments
 (0)