mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
fa4c21b4f9
commit
3064d719ae
1 changed files with 10 additions and 0 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -19,5 +19,15 @@ pipeline {
|
|||
sh 'docker build -t mrcool435/spring-petclinic:latest .'
|
||||
}
|
||||
}
|
||||
stage('Docker Push') {
|
||||
agent any
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword',
|
||||
usernameVariable: 'dockerHubUser')]) {
|
||||
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
|
||||
sh 'docker push mrcool435/spring-petclinic:latest'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue