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
ec36711cae
commit
bcd9f66a41
1 changed files with 4 additions and 4 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -22,8 +22,8 @@ pipeline {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
stage('docker') {
|
stage('docker') {
|
||||||
script {
|
steps {
|
||||||
steps {
|
script {
|
||||||
app = docker.build("rolandgryddynamics/mr")
|
app = docker.build("rolandgryddynamics/mr")
|
||||||
// sh 'docker build -t my/app .'
|
// sh 'docker build -t my/app .'
|
||||||
sh 'ls -a'
|
sh 'ls -a'
|
||||||
|
@ -34,8 +34,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('deploy to dockerhub') {
|
stage('deploy to dockerhub') {
|
||||||
script {
|
steps {
|
||||||
steps {
|
script {
|
||||||
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
||||||
app.push("latest")
|
app.push("latest")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue