Commit 270c78d9 authored by lusyoe's avatar lusyoe

移除构建生成的本地镜像

parent ac7c9ab0
......@@ -71,6 +71,11 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
stage('docker-push') {
sh "docker push ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
stage('docker-remove') {
sh "docker rmi ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
}
......
......@@ -72,6 +72,10 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
stage('docker-push') {
sh "docker push ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
stage('docker-remove') {
sh "docker rmi ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
}
......
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