feat(deploy): Dockerfile·Helm 차트·릴리스 파이프라인 - #18
Merged
Merged
Conversation
- **Dockerfile**: web(pnpm) → builder(go, assets 임베드) → distroless/static. 외부 의존 0·cgo 0 이라 정적 바이너리다. 게이트는 이미지 빌드에 넣지 않았다 — 프로토타입은 Forgejo 러너 제약(host 라벨 단독) 때문에 그랬지만 여기서는 GitHub Actions 가 make all 을 이미 돌린다. - **차트**: 데모 설정(7종 환경변수·values 블록)을 걷어내고 알림 설정을 넣었다. rulesConfigMap 을 지정하면 룰 파일이 읽기 전용으로 마운트되고 RULES_DIR 이 주입된다 — 지정하지 않으면 조회 전용으로 돈다. - 이미지 좌표를 ghcr.io/keiailab/nodevitals-observatory 로. 차트 0.1.0. - **릴리스**: main 착지 시 Chart.yaml 의 appVersion 으로 발행하고, 이미 있는 태그는 건너뛴다. appVersion 이 semver 가 아니면 즉시 실패시킨다 — 잘못된 값이 태그가 되면 되돌리기 어렵다.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 의 ⑤ 입니다. 이미지가 발행되고 클러스터에 배포할 수 있게 됩니다.
Dockerfile
web(pnpm) → builder(go, assets 임베드) → distroless/static. 외부 의존 0·cgo 0 이라 정적 바이너리입니다.게이트는 이미지 빌드에 넣지 않았습니다. 프로토타입은 Forgejo 러너가 host 라벨 단독(Alpine/BusyBox)이라 Go·Node 툴체인을 가정할 수 없어 그렇게 했지만, 여기서는 GitHub Actions 가
make all을 이미 돌립니다.차트
데모 설정(환경변수 7종 + values 블록)을 걷어내고 알림 설정을 넣었습니다.
지정하지 않으면 조회 전용으로 돕니다 — 그것도 유효한 구성입니다.
이미지 좌표를
ghcr.io/keiailab/nodevitals-observatory로 바꾸고 차트를0.1.0으로 시작합니다.릴리스
main 착지 시
Chart.yaml의appVersion으로 발행하고 이미 있는 태그는 건너뜁니다(멱등).appVersion이 semver 가 아니면 즉시 실패시킵니다 — 잘못된 값이 태그가 되면 되돌리기 어렵습니다.검증
helm lint통과, 렌더 확인(이미지 좌표·룰 마운트·환경변수),docker build --check통과.