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
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') {
|
stage('docker') {
|
||||||
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 'docker tag my/app rolandgryddynamics/mr'
|
||||||
sh 'ls -a'
|
|
||||||
sh 'docker version'
|
|
||||||
// sh 'docker tag my/app rolandgryddynamics/mr'
|
|
||||||
// sh 'docker tag push rolandgryddynamics/mr'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('deploy to dockerhub') {
|
stage('deploy to dockerhub') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
sh 'docker tag push rolandgryddynamics/mr'
|
||||||
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
|
|
||||||
app.push("latest")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue