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
5 changes: 4 additions & 1 deletion .github/workflows/cd-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- CI (model-api)
types:
- completed
branches: # main ๋ธŒ๋žœ์น˜ push ๊ฐ€ ํŠธ๋ฆฌ๊ฑฐ
branches:
- main

jobs:
Expand All @@ -21,5 +21,8 @@ jobs:
- name: kubectl apply
run: kubectl apply -k k8s/model-api/overlays/local/

- name: ์ด๋ฏธ์ง€ ํƒœ๊ทธ ์—…๋ฐ์ดํŠธ # CD ํ›„ deployment์— ์žˆ๋Š” v1 ํƒœ๊ทธ๋ฅผ ๋”ฐ๋ผ๊ฐ€๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ์ž๋™์œผ๋กœ ์ปค๋ฐ‹ SHA๋กœ ์—…๋ฐ์ดํŠธ ์‹œํ‚ค๋„๋ก
run: kubectl set image deployment/model-api model-api=${{ secrets.DOCKER_USERNAME }}/model-api:${{ github.event.workflow_run.head_sha }}

- name: ๋ฐฐํฌ ํ™•์ธ
run: kubectl rollout status deployment/model-api
2 changes: 1 addition & 1 deletion k8s/model-api/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: model-api
image: simgpt/model-api:v1
image: simgpt/model-api:v1 # ์ด๋ ‡๊ฒŒ ๋˜์–ด์žˆ์–ด๋„ ์–ด์ฐจํ”ผ cd์‹œ์— ํƒœ๊ทธ๊ฐ€ ์ปค๋ฐ‹ sha๋กœ ๋ณ€๊ฒฝ๋˜๋„๋ก ํ•ด๋†“์Œ
ports:
- containerPort: 8000
resources:
Expand Down
Loading