# 当前使用 kokoro 云效内 helm 仓库
export HELM_NAMESPACE=helm_ns_test
helm repo add $HELM_NAMESPACE https://repomanage.rdc.aliyun.com/helm_repositories/$HELM_NAMESPACE --username={name} --password={passwd}
export K8S_NAMESPACE=default
export ALI_DOCKER_REGISTRY=registry.cn-hangzhou.aliyuncs.com/name
# auth-center
export RELEASE_NAME=auth-center
export DOCKER_IMAGE_NAME=thiner-auth-center
export DOCKER_IMAGE_TAG=20230502-dev-k8s-08bf8570
# 注意提供 helm values 文件, 放在 thiner-api-base 项目对应服务的 helm 文件夹内
helm upgrade --atomic --install $RELEASE_NAME -n $K8S_NAMESPACE $HELM_NAMESPACE/thiner-chart --set image.tag=$DOCKER_IMAGE_TAG --set image.repository=$ALI_DOCKER_REGISTRY/$DOCKER_IMAGE_NAME -f values.yaml