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