mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Added tag before docker push
This commit is contained in:
parent
3064d719ae
commit
8635ca82c1
1 changed files with 1 additions and 0 deletions
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -25,6 +25,7 @@ pipeline {
|
|||
withCredentials([usernamePassword(credentialsId: 'DOCKER_HUB_GLOBAL', passwordVariable: 'dockerHubPassword',
|
||||
usernameVariable: 'dockerHubUser')]) {
|
||||
sh "docker login -u ${env.dockerHubUser} -p ${env.dockerHubPassword}"
|
||||
sh 'docker tag spring-petclinic:latest mrcool435/spring-petclinic:latest'
|
||||
sh 'docker push mrcool435/spring-petclinic:latest'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue