jenk
This commit is contained in:
parent
270c68c877
commit
9dcc53bb3b
|
@ -17,7 +17,7 @@ pipeline {
|
||||||
stage("Build Containers and push to registry") {
|
stage("Build Containers and push to registry") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh 'docker build -t docker-registry1.in.thelinuxpro.net:5000/sites/kameronkenny.com:0.0.3 . --push'
|
sh 'docker build -t docker-registry1.in.thelinuxpro.net:5000/sites/thelinux.pro:0.0.1 . --push'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ pipeline {
|
||||||
stage("Tag image as latest") {
|
stage("Tag image as latest") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh 'docker tag docker-registry1.in.thelinuxpro.net:5000/sites/kameronkenny.com:0.0.3 docker-registry1.in.thelinuxpro.net:5000/sites/kameronkenny.com:latest'
|
sh 'docker tag docker-registry1.in.thelinuxpro.net:5000/sites/thelinux.pro:0.0.1 docker-registry1.in.thelinuxpro.net:5000/sites/thelinux.pro:latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ pipeline {
|
||||||
stage("push latest tag") {
|
stage("push latest tag") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh 'docker image push docker-registry1.in.thelinuxpro.net:5000/sites/kameronkenny.com:latest'
|
sh 'docker image push docker-registry1.in.thelinuxpro.net:5000/sites/thelinux.pro:latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue