feat: CI/CD 全链路(Drone pipeline + Helm chart + Dockerfile)
重大变更:
- .drone.yml: 4 步 pipeline(submodule init → build 12 镜像 → helm deploy → verify)
- mixingx-chart/: 手写 Helm chart(模式 3,替代 aspire publish)
- 独立 postgres(每服务一个,不再共享)
- 四胞胎架构(agent/edge: 后端+前端+DB podAffinity 同节点)
- pgAdmin(在 K3s 内,管理所有 postgres)
- Aspire Dashboard(OTLP 遥测接收端)
- Dockerfile: 全部服务已补齐(含 gateway/audit 新增)
- apphost.cs: opcua mock publish 模式改 AddDockerfile
- patch-persistence.sh: emptyDir → PVC patch(备用)
submodule 指针更新:
- mixingx.sso: Dockerfile 精准 COPY
- mixingx.edge: opcua Dockerfile 新增
- eau.ultra: MigrateAsync 无条件执行
- mixingx.audit: Dockerfile 新增
- mixingx.gateway: Dockerfile 新增
镜像 tag 规则: {分支}-{时间戳}-[{tag}]
This commit is contained in:
commit
f69c4161b5
19 files changed
+975
No files matched your search
@@ -0,0 +1,30 @@
|
||||
{{/*
|
||||
完整镜像名: registry/image:tag
|
||||
用法: {{ include "mixingx.image" (dict "image" .image "Values" $.Values) }}
|
||||
或: {{ include "mixingx.image" . }}(range 内,. 有 image 字段,但需传 Values)
|
||||
*/}}
|
||||
{{- define "mixingx.image" -}}
|
||||
{{ required "registry is required" .Values.registry }}/{{ required "image is required" .image }}:{{ .Values.tag | default "latest" }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
标准标签(所有资源共用)
|
||||
用法: {{ include "mixingx.labels" (dict "name" "sso" "Release" $.Release) }}
|
||||
*/}}
|
||||
{{- define "mixingx.labels" -}}
|
||||
app.kubernetes.io/name: mixingx
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
app.kubernetes.io/component: {{ .name }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Service 的 mixingx.io 标签(gateway 服务发现用)
|
||||
只在 role 不为空且不为 "gateway" 时打
|
||||
*/}}
|
||||
{{- define "mixingx.discoveryLabels" -}}
|
||||
{{- if and .role (ne .role "gateway") }}
|
||||
mixingx.io/role: {{ .role }}
|
||||
mixingx.io/node-id: {{ .name }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
Reference in new issue
Block a user