feat: 添加 Gitea Actions CI/CD — tag 驱动环境部署
GraphRAG CI/CD / build-and-deploy (push) Failing after 3m49s

- git push → 构建镜像 (sha-xxx) → 部署到 test (graphrag-test)
- git push --tags → 构建镜像 (vx.y.z) → 部署到 prod (graphrag-prod)
- DNS + hostAliases + nodeAffinity 固化到 deployment yaml
- 前后端均固定到 k8smaster 节点,便于 CI 导入 containerd 镜像
This commit is contained in:
2026-06-18 14:26:15 +08:00
parent ebf27a6c3e
commit 58079daba9
3 changed files with 125 additions and 0 deletions
+21
View File
@@ -17,6 +17,27 @@ spec:
app: graphrag
component: backend
spec:
hostAliases:
- ip: "10.42.0.1"
hostnames:
- keycloak.plfai.cn
dnsConfig:
options:
- name: ndots
value: "1"
- name: timeout
value: "3"
- name: attempts
value: "2"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k8smaster
containers:
- name: backend
image: registry.plfai.cn/graphrag-backend:latest
+17
View File
@@ -17,6 +17,23 @@ spec:
app: graphrag
component: frontend
spec:
dnsConfig:
options:
- name: ndots
value: "1"
- name: timeout
value: "3"
- name: attempts
value: "2"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k8smaster
containers:
- name: frontend
image: registry.plfai.cn/graphrag-frontend:latest