Commit 231742bd authored by 智勇's avatar 智勇

tag

parent 7b11afc7
...@@ -21,7 +21,7 @@ def contextMkdir(key) { ...@@ -21,7 +21,7 @@ def contextMkdir(key) {
def imageTag(harborGroup,k8sSystemName,safeBranchName,tagName){ def imageTag(harborGroup,k8sSystemName,safeBranchName,tagName){
def imageTag4_4=[:] def imageTag4_4=[:]
imageTag4_4["harborHost"]="http://192.168.4.4" imageTag4_4["harborHost"]="http://192.168.4.4"
imageTag4_4["imageTag"] = "192.168.4.4/${harborGroup}/tke-${k8sSystemName}:${safeBranchName}-${tagName}" imageTag4_4["imageTag"] = "192.168.4.4/${harborGroup}/${k8sSystemName}:tke-${safeBranchName}-${tagName}"
return [ imageTag4_4 ] return [ imageTag4_4 ]
} }
...@@ -557,7 +557,7 @@ def dockerbuild_and_push(imageTagInfo,buildNumber,systemName,branchName,cluster, ...@@ -557,7 +557,7 @@ def dockerbuild_and_push(imageTagInfo,buildNumber,systemName,branchName,cluster,
image.push() image.push()
if (branchName == "master" || branchName == "master--master") { if (branchName == "master" || branchName == "master--master") {
image.push('latest') image.push('tke-latest')
} }
_utils().beautyEcho("镜像地址:${imageTag}", "info") _utils().beautyEcho("镜像地址:${imageTag}", "info")
......
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