mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
JenkinsFile docker configuration
This commit is contained in:
parent
f34a0bff04
commit
1972e253f3
1 changed files with 12 additions and 5 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -23,15 +23,22 @@ pipeline {
|
||||||
// }
|
// }
|
||||||
stage('docker') {
|
stage('docker') {
|
||||||
steps {
|
steps {
|
||||||
app = docker.build("rolandgryddynamics/mr")
|
script {
|
||||||
// sh 'docker build -t my/app .'
|
sh 'docker version'
|
||||||
// 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'
|
||||||
|
// sh 'docker tag push rolandgryddynamics/mr'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('deploy to dockerhub') {
|
stage('deploy to dockerhub') {
|
||||||
steps {
|
steps {
|
||||||
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
script {
|
||||||
app.push("latest")
|
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
||||||
|
app.push("latest")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue