修改CI中可能出现的过滤歧义

pull/1209/head
zhangxinhui02 2025-08-21 15:42:08 +08:00
parent a065da1613
commit cb188f62e1
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
1 changed files with 2 additions and 5 deletions

View File

@ -9,13 +9,10 @@ build-adapter-cm-generator:
rules:
- changes:
- helm-chart/adapter-cm-generator/**
variables:
BUILD_CONTEXT: helm-chart/adapter-cm-generator
BUILD_DESTINATION: reg.mikumikumi.xyz/maibot/adapter-cm-generator
script:
- export BUILD_CONTEXT=helm-chart/adapter-cm-generator
- export TMP_DST=reg.mikumikumi.xyz/maibot/adapter-cm-generator
- export CHART_VERSION=$(cat helm-chart/Chart.yaml | grep version | cut -d' ' -f2)
- export CHART_VERSION=$(cat helm-chart/Chart.yaml | grep '^version:' | cut -d' ' -f2)
- export BUILD_ARGS="--destination ${TMP_DST}:${CHART_VERSION} --destination ${TMP_DST}:latest"
- build
@ -30,7 +27,7 @@ package-helm-chart:
- helm-chart/Chart.yaml
- helm-chart/values.yaml
script:
- export CHART_VERSION=$(cat helm-chart/Chart.yaml | grep version | cut -d' ' -f2)
- export CHART_VERSION=$(cat helm-chart/Chart.yaml | grep '^version:' | cut -d' ' -f2)
- helm registry login reg.mikumikumi.xyz --username ${CI_REGISTRY_USER} --password ${CI_REGISTRY_PASSWORD}
- helm package helm-chart
- helm push maibot-${CHART_VERSION}.tgz oci://reg.mikumikumi.xyz/maibot