mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
31824422a2
commit
e357deeed2
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -9,14 +9,14 @@ pipeline {
|
|||
}
|
||||
stage('Docker Build') {
|
||||
steps {
|
||||
sh 'docker build -t registry.hub.docker.com/hybrid2k3/petclinic:1 .'
|
||||
sh 'docker build -t hybrid2k3/petclinic:2 .'
|
||||
}
|
||||
}
|
||||
stage('Docker Push') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'dockerHub', passwordVariable: 'dockerHubPassword', usernameVariable: 'dockerHubUser')]) {
|
||||
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
|
||||
sh 'docker push registry.hub.docker.com/hybrid2k3/petclinic:1'
|
||||
sh 'docker push hybrid2k3/petclinic:2'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue