Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
options:
- all
- web
- admin
- university
force_redeploy:
description: "When up to date, skip divergence and print manual redeploy guidance"
Expand All @@ -40,14 +39,11 @@ jobs:
web)
TARGETS='["web"]'
;;
admin)
TARGETS='["admin"]'
;;
university)
TARGETS='["university"]'
;;
all)
TARGETS='["web","admin","university"]'
TARGETS='["web","university"]'
;;
*)
echo "Unsupported target: $TARGET" >&2
Expand Down
10 changes: 5 additions & 5 deletions docs/git-cicd.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ GitHub Actions, Vercel를 사용하여 CI/CD를 관리합니다.

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

Github Actions의 `Promote Main to Release Branches`를 가동시키면 선택한 release branch가 main으로 갱신되고, 각 Vercel Project의 production 환경에 배포됩니다.
**admin은 main 병합만으로 production이 배포됩니다.** Vercel Admin Project의 production branch가 `main`이며, release branch 승격 단계가 없습니다. admin 앱은 배포가 하나(main)이고, stage/prod API 전환은 앱 내 환경 스위처로 런타임에 처리합니다.

web, university-web은 Github Actions의 `Promote Main to Release Branches`를 가동시키면 선택한 release branch가 main으로 갱신되고, 각 Vercel Project의 production 환경에 배포됩니다.

- `release-web`: web production 배포
- `release-admin`: admin production 배포
- `release-university`: university-web production 배포

릴리즈 workflow의 target은 다음과 같이 사용합니다.

- `all`: web, admin, university-web 전체 릴리즈
- `all`: web, university-web 전체 릴리즈
- `web`: web만 릴리즈
- `admin`: admin만 릴리즈
- `university`: university-web만 릴리즈

기본값은 `all`입니다. 특정 project만 production 릴리즈하려면 `web`, `admin`, `university`를 선택합니다.
기본값은 `all`입니다. 특정 project만 production 릴리즈하려면 `web`, `university`를 선택합니다.
5 changes: 2 additions & 3 deletions docs/university-multizone-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ University project의 직접 배포 도메인은 검색엔진에 노출하지
production 릴리즈는 GitHub Actions `Promote Main to Release Branches` workflow로 release branch를 갱신해 Vercel 배포를 트리거한다.

- Main Web Project production branch: `release-web`
- Admin Project production branch: `release-admin`
- Admin Project production branch: `main` (release 승격 없이 main 병합 시 production 배포)
- University Web Project production branch: `release-university`

workflow target은 다음과 같이 사용한다.

- `all`: `release-web`, `release-admin`, `release-university`를 모두 main으로 갱신
- `all`: `release-web`, `release-university`를 모두 main으로 갱신
- `web`: `release-web`만 main으로 갱신
- `admin`: `release-admin`만 main으로 갱신
- `university`: `release-university`만 main으로 갱신

workflow 기본값은 `all`이다. 개별 production 배포가 필요하면 `web`, `admin`, `university`를 선택한다.
Expand Down
Loading