mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Push docker image step
This commit is contained in:
parent
78af55e81f
commit
22f10e915f
1 changed files with 6 additions and 1 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -35,7 +35,6 @@ pipeline {
|
|||
sh 'docker build -t $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT} .'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Docker Login') {
|
||||
steps {
|
||||
echo 'Nexus Docker Repository Login'
|
||||
|
@ -47,6 +46,12 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Push') {
|
||||
steps {
|
||||
echo 'Pushing Image to docker hub'
|
||||
sh 'docker push $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
|
|
Loading…
Reference in a new issue