Commit d7920ebc authored by xujian's avatar xujian

优化

parent 1b16fc7e
...@@ -144,6 +144,10 @@ pipeline { ...@@ -144,6 +144,10 @@ pipeline {
sh "docker push ${push_path}/${module.name}:${module.version}" sh "docker push ${push_path}/${module.name}:${module.version}"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi" sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
} }
if (module.isUpdate) {
sh "docker tag ${push_path}/${module.name}:${module.version} ${module.name}:${module.version}"
sh "docker save -o ${module.name}-${module.version}.tar ${module.name}:${module.version}"
}
} }
} }
......
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