rewrite php Jenkinsfile
This commit is contained in:
46
dockerfiles/tasks/php/Jenkinsfile
vendored
46
dockerfiles/tasks/php/Jenkinsfile
vendored
@@ -21,34 +21,32 @@ pipeline {
|
||||
// }
|
||||
|
||||
stage('Build PHP Images') {
|
||||
steps {
|
||||
def workdir = "dockerfiles/tasks/php"
|
||||
parallel php70 {
|
||||
def version = "7.0"
|
||||
def dockerfile = "Dockerfile-70"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.1'"
|
||||
}
|
||||
customImage.push()
|
||||
def workdir = "dockerfiles/tasks/php"
|
||||
parallel php70 {
|
||||
def version = "7.0"
|
||||
def dockerfile = "Dockerfile-70"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.1'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}, php71 {
|
||||
def version = "7.1"
|
||||
def dockerfile = "Dockerfile-71"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.1'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}, php71 {
|
||||
def version = "7.1"
|
||||
def dockerfile = "Dockerfile-71"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.1'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}, failFast: false
|
||||
}
|
||||
}
|
||||
}, failFast: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user