mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
43d6d7af8e
commit
cbed61fc58
1 changed files with 7 additions and 0 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -50,9 +50,16 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Login to Dockerhub') {
|
||||
steps {
|
||||
echo "now we will login to dockerhub"
|
||||
sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin'
|
||||
}
|
||||
}
|
||||
stage('Push to DockerHub') {
|
||||
steps {
|
||||
echo "now we will push to the docker file"
|
||||
sh 'docker push mihaivalentingeorgescu/imagine_spring_petclinic:0.1'
|
||||
}
|
||||
}
|
||||
stage('Change stages') {
|
||||
|
|
Loading…
Reference in a new issue