add push stage
This commit is contained in:
parent
d552fda59d
commit
492e08ef3d
|
@ -22,13 +22,22 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Tage image as latest") {
|
stage("Tag image as latest") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh 'docker tag docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:0.0.1 docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:latest --push'
|
sh 'docker tag docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:0.0.1 docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:latest --push'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage("push latest tag") {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh 'docker image push docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:latest'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue