Commit c52fb3ce authored by 徐剑's avatar 徐剑

撤销更改

parent 3569f271
......@@ -157,10 +157,12 @@ pipeline {
steps {
script {
for (web in webs) {
sh "docker build -f Docker/nginx/Dockerfile -t ${push_path}/${web.name}:${web.version} --build-arg FILE_NAME=${web.dir}/dist/ ${workspace}"
sh "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${web.name}:${web.version}"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
if(web.isUpdate){
sh "docker build -f Docker/nginx/Dockerfile -t ${push_path}/${web.name}:${web.version} --build-arg FILE_NAME=${web.dir}/dist/ ${workspace}"
sh "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${web.name}:${web.version}"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
}
}
}
}
......
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