add push stage

This commit is contained in:
Kameron Kenny - pi501 2024-05-17 12:12:47 -04:00
parent d552fda59d
commit 492e08ef3d
1 changed files with 10 additions and 1 deletions

11
Jenkinsfile vendored
View File

@ -22,13 +22,22 @@ pipeline {
}
}
stage("Tage image as latest") {
stage("Tag image as latest") {
steps {
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'
}
}
}
stage("push latest tag") {
steps {
script {
sh 'docker image push docker-registry1.in.thelinuxpro.net:5000/tlp/tlp_jekyll:latest'
}
}
}
}
}