JenkinsFile docker configuration

This commit is contained in:
RolandBakunts 2023-01-17 03:34:56 -08:00
parent f34a0bff04
commit 1972e253f3

7
Jenkinsfile vendored
View file

@ -23,16 +23,23 @@ pipeline {
// }
stage('docker') {
steps {
script {
sh 'docker version'
app = docker.build("rolandgryddynamics/mr")
// sh 'docker build -t my/app .'
// sh 'docker tag my/app rolandgryddynamics/mr'
// sh 'docker tag push rolandgryddynamics/mr'
}
}
}
stage('deploy to dockerhub') {
steps {
script {
docker.withRegistry("https://registry.hub.docker.com", "webserver_login")
app.push("latest")
}
}
}
}
}