From 52b9c5663e0308d3c7889281ab76f725018e8687 Mon Sep 17 00:00:00 2001 From: zhangxinhui02 Date: Mon, 17 Nov 2025 17:33:24 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E6=94=B9helm=20chart=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=8F=A6=E8=A1=8C?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=BA=A6=E9=BA=A6=E6=9C=AC=E4=BD=93=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-chart/.gitlab-ci.yml | 72 +++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/helm-chart/.gitlab-ci.yml b/helm-chart/.gitlab-ci.yml index ad7af61d..e10b203a 100644 --- a/helm-chart/.gitlab-ci.yml +++ b/helm-chart/.gitlab-ci.yml @@ -1,5 +1,5 @@ stages: - - initialize-maibot-git-repo +# - initialize-maibot-git-repo - build - package @@ -9,41 +9,41 @@ workflow: - if: '$CI_COMMIT_BRANCH == "helm-chart"' - when: never -# 查询并将麦麦仓库的工作区置为最后一个tag的版本 -initialize-maibot-git-repo: - stage: initialize-maibot-git-repo - image: reg.mikumikumi.xyz/base/git:latest - cache: - key: git-repo - policy: push - paths: - - target-repo/ - script: - - git clone https://github.com/Mai-with-u/MaiBot.git target-repo/ - - cd target-repo/ - - export MAIBOT_VERSION=$(git describe --tags --abbrev=0) - - echo "Current version is ${MAIBOT_VERSION}" - - git reset --hard ${MAIBOT_VERSION} - - echo ${MAIBOT_VERSION} > MAIBOT_VERSION - - git clone https://github.com/MaiM-with-u/maim_message maim_message - - git clone https://github.com/MaiM-with-u/MaiMBot-LPMM.git MaiMBot-LPMM - - ls -al - -# 构建最后一个tag的麦麦本体的镜像 -build-core: - stage: build - image: reg.mikumikumi.xyz/base/kaniko-builder:latest - cache: - key: git-repo - policy: pull - paths: - - target-repo/ - script: - - cd target-repo/ - - export BUILD_CONTEXT=$(pwd) - - ls -al - - export BUILD_DESTINATION="reg.mikumikumi.xyz/maibot/maibot:tag-$(cat MAIBOT_VERSION)" - - build +## 查询并将麦麦仓库的工作区置为最后一个tag的版本 +#initialize-maibot-git-repo: +# stage: initialize-maibot-git-repo +# image: reg.mikumikumi.xyz/base/git:latest +# cache: +# key: git-repo +# policy: push +# paths: +# - target-repo/ +# script: +# - git clone https://github.com/Mai-with-u/MaiBot.git target-repo/ +# - cd target-repo/ +# - export MAIBOT_VERSION=$(git describe --tags --abbrev=0) +# - echo "Current version is ${MAIBOT_VERSION}" +# - git reset --hard ${MAIBOT_VERSION} +# - echo ${MAIBOT_VERSION} > MAIBOT_VERSION +# - git clone https://github.com/MaiM-with-u/maim_message maim_message +# - git clone https://github.com/MaiM-with-u/MaiMBot-LPMM.git MaiMBot-LPMM +# - ls -al +# +## 构建最后一个tag的麦麦本体的镜像 +#build-core: +# stage: build +# image: reg.mikumikumi.xyz/base/kaniko-builder:latest +# cache: +# key: git-repo +# policy: pull +# paths: +# - target-repo/ +# script: +# - cd target-repo/ +# - export BUILD_CONTEXT=$(pwd) +# - ls -al +# - export BUILD_DESTINATION="reg.mikumikumi.xyz/maibot/maibot:tag-$(cat MAIBOT_VERSION)" +# - build # 将Helm Chart版本作为tag,构建并推送镜像 build-adapter-cm-generator: