mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
added docker stage
This commit is contained in:
parent
ad85e4f212
commit
c63c93d26a
1 changed files with 11 additions and 0 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -75,6 +75,17 @@ pipeline {
|
|||
withDockerRegistry(credentialsId: 'Docker_cred', toolName: 'Docker') {
|
||||
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('pushing image to Docker hub') {
|
||||
|
||||
steps {
|
||||
script {
|
||||
withDockerRegistry(credentialsId: 'Docker_cred', toolName: 'Docker') {
|
||||
sh "docker push prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER}"
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue