mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 10:55:48 +00:00
JenkinsFile docker configuration
This commit is contained in:
parent
31dff116d4
commit
f34a0bff04
1 changed files with 5 additions and 4 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -23,14 +23,15 @@ pipeline {
|
|||
// }
|
||||
stage('docker') {
|
||||
steps {
|
||||
// app = docker.build("rolandgryddynamics/mr")
|
||||
sh 'docker build -t my/app .'
|
||||
sh 'docker tag my/app rolandgryddynamics/mr'
|
||||
app = docker.build("rolandgryddynamics/mr")
|
||||
// sh 'docker build -t my/app .'
|
||||
// sh 'docker tag my/app rolandgryddynamics/mr'
|
||||
}
|
||||
}
|
||||
stage('deploy to dockerhub') {
|
||||
steps {
|
||||
sh 'docker tag push rolandgryddynamics/mr'
|
||||
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue