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