From 99429bbc8cf6f829738a5edca5726af01230f3ea Mon Sep 17 00:00:00 2001 From: zhangxinhui02 Date: Tue, 23 Sep 2025 02:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=AF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E9=95=9C=E5=83=8F=EF=BC=8C=E8=87=AA=E8=A1=8C=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-chart/.gitlab-ci.yml | 10 ++++++++++ helm-chart/templates/core-statefulset.yaml | 2 +- helm-chart/values.yaml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/helm-chart/.gitlab-ci.yml b/helm-chart/.gitlab-ci.yml index 5a5a2f73..73e48dce 100644 --- a/helm-chart/.gitlab-ci.yml +++ b/helm-chart/.gitlab-ci.yml @@ -2,6 +2,16 @@ stages: - build - package +# 构建最后一个tag的麦麦本体的镜像 +build-core: + stage: build + image: reg.mikumikumi.xyz/base/kaniko-builder:latest + script: + - export MAIBOT_VERSION=$(git describe --tags --abbrev=0) + - git reset --hard ${MAIBOT_VERSION} + - export BUILD_DESTINATION="reg.mikumikumi.xyz/maibot/maibot:${MAIBOT_VERSION}" + - build + # 将Helm Chart版本作为tag,构建并推送镜像 build-adapter-cm-generator: stage: build diff --git a/helm-chart/templates/core-statefulset.yaml b/helm-chart/templates/core-statefulset.yaml index 84ac6721..ff4ed8fe 100644 --- a/helm-chart/templates/core-statefulset.yaml +++ b/helm-chart/templates/core-statefulset.yaml @@ -29,7 +29,7 @@ spec: value: 99f08e0cab0190de853cb6af7d64d4de - name: PRIVACY_AGREE value: 9943b855e72199d0f5016ea39052f1b6 - image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag | default "main-0e0179f" }} + image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag | default "0.10.3-beta" }} imagePullPolicy: {{ .Values.core.image.pullPolicy }} ports: - containerPort: 8000 diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 617e8ada..09595638 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -47,7 +47,7 @@ adapter: core: image: - repository: sengokucola/maibot + repository: reg.mikumikumi.xyz/maibot/maibot tag: # 默认 main-0e0179f pullPolicy: IfNotPresent pullSecrets: [ ]