Commit dc7c20ba by 李二毛

Merge branch 'development' into 'staging'

添加脚本

See merge request liermao/microservice-autodevopspipelines!86
parents 6537b6fe 5603b82a
Pipeline #4289 failed with stages
in 44 seconds
......@@ -41,6 +41,7 @@ function CD()
# repository name must be lowercase
ToLower "${registryHost}/${registryUserName}/${serviceName}:${version}" imagefullname
ToLower ${appName} appNameOfK8s
echo "Tips: namespace: ${namespace}, appNameOfK8s: ${appNameOfK8s}, imagefullname: ${imagefullname}"
kubectl -n ${namespace} set image deployments/${appNameOfK8s} "${appNameOfK8s}=${imagefullname}";
# [compatible]Staging environment does not need to change version number.
......
......@@ -18,7 +18,8 @@ then
else
GetVersion version
GetNameSpace namespace
GetImageRegistrySettings registryHost registryUserName
GetRegistryHost registryHost
GetImageUserName registryUserName
for servicePrefix in `ls ./src/Services|xargs -d '/'`
do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment