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
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') {
|
stage('docker') {
|
||||||
steps {
|
steps {
|
||||||
// app = docker.build("rolandgryddynamics/mr")
|
app = docker.build("rolandgryddynamics/mr")
|
||||||
sh 'docker build -t my/app .'
|
// sh 'docker build -t my/app .'
|
||||||
sh 'docker tag my/app rolandgryddynamics/mr'
|
// sh 'docker tag my/app rolandgryddynamics/mr'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('deploy to dockerhub') {
|
stage('deploy to dockerhub') {
|
||||||
steps {
|
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