update php build to include basic php7.3
updated robo build
This commit is contained in:
84
dockerfiles/tasks/php/Jenkinsfile
vendored
84
dockerfiles/tasks/php/Jenkinsfile
vendored
@@ -1,88 +1,12 @@
|
||||
def workdir = "dockerfiles/tasks/php"
|
||||
|
||||
pipeline {
|
||||
agent { label 'docker' }
|
||||
agent any
|
||||
triggers {
|
||||
cron('@daily')
|
||||
}
|
||||
options {
|
||||
disableConcurrentBuilds()
|
||||
buildDiscarder(logRotator(numToKeepStr: '2'))
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build PHP Images in Parallel') {
|
||||
failFast false
|
||||
parallel {
|
||||
stage("php70") {
|
||||
steps {
|
||||
script {
|
||||
def version = "7.0"
|
||||
def dockerfile = "Dockerfile-70"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.0'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ("php71") {
|
||||
steps {
|
||||
script {
|
||||
def version = "7.1"
|
||||
def dockerfile = "Dockerfile-71"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
|
||||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ("php72") {
|
||||
steps {
|
||||
script {
|
||||
def version = "7.2"
|
||||
def dockerfile = "Dockerfile-72"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.2'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ("php72-dev") {
|
||||
steps {
|
||||
script {
|
||||
def version = "7.2-dev"
|
||||
def dockerfile = "Dockerfile-72-dev"
|
||||
dir(workdir) {
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000', 'b11d7f1a-81ac-4daf-8842-56afc0d2370e') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/xaicorp/php:${version}", "-f ${dockerfile} .")
|
||||
customImage.inside() {
|
||||
sh "php --version | grep 'PHP 7.2'"
|
||||
sh "php --version | grep 'Xdebug'"
|
||||
}
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build Image') {
|
||||
steps {
|
||||
build job: '_build_image', parameters: [string(name: 'IMAGE', value: 'php')], quietPeriod: 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user