Skip to content

Commit

Permalink
커밋으로 배포하기
Browse files Browse the repository at this point in the history
  • Loading branch information
FourwingsY committed Mar 6, 2024
1 parent a5eb2e7 commit 39e6093
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: dev-ci-cd
on:
push:
branches:
- main
- dev
workflow_dispatch: # for manual trigger

permissions:
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
- uses: azure/setup-helm@v1
with:
version: '3.8.2'
version: "3.8.2"
id: install-helm

- uses: azure/setup-kubectl@v3
with:
version: 'v1.24.1'
version: "v1.24.1"
id: install-kubectl

- name: Upgrade scc-admin-frontend helm chart
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/prod-ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: prod-ci-cd
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+' # Follow semantic versioning
- '[0-9]+.[0-9]+.[0-9]+-hotfix[0-9]' # For hotfix
branches:
- prod
workflow_dispatch: # for manual trigger

permissions:
Expand Down Expand Up @@ -59,12 +58,12 @@ jobs:
- uses: azure/setup-helm@v1
with:
version: '3.8.2'
version: "3.8.2"
id: install-helm

- uses: azure/setup-kubectl@v3
with:
version: 'v1.24.1'
version: "v1.24.1"
id: install-kubectl

- name: Update image tag for scc-admin-frontend
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ pnpm dev
`pnpm dev`를 통해 로컬에서 실행한 경우, 3066 포트를 사용합니다. [http://localhost:3066](http://localhost:3066)

### 배포
- DEV - main 브랜치에 커밋될 때마다 자동으로 배포됩니다.
- PROD - `a.b.c` 형식의 git tag를 푸시하면 해당 tag가 달린 커밋 기준으로 푸시됩니다.

- DEV - `dev` 브랜치에 커밋될 때마다 자동으로 배포됩니다.
- PROD - `live` 브랜치에 커밋될 때마다 자동으로 배포됩니다.

0 comments on commit 39e6093

Please sign in to comment.