Commit a9c4fd61 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

.gitlab-ci.yml : builds par ordre de version de PHP décroissante ; plus de...

.gitlab-ci.yml : builds par ordre de version de PHP décroissante ; plus de build pour PHP 7.4 et avant.
parent e9209c8d
Loading
Loading
Loading
Loading
Loading
+12 −60
Original line number Diff line number Diff line
@@ -4,71 +4,23 @@ before_script:
stages:
  - build

build5.6:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=5.6
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-5.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache

build7.0:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=7.0
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache

build7.1:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=7.1
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache

build7.2:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=7.2
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache

build7.3:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=7.3
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t open-source/docker/unicaen-image:php${PHP_VERSION} .
    - docker tag open-source/docker/unicaen-image:php${PHP_VERSION} registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}
    - docker push registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}

build7.4:
build8.2:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=7.4
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache --no-cache .
    - export PHP_VERSION=8.2
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t open-source/docker/unicaen-image:php${PHP_VERSION} --no-cache .
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t open-source/docker/unicaen-image:php${PHP_VERSION} .
    - docker tag open-source/docker/unicaen-image:php${PHP_VERSION} registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}
    - docker push registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}

build8.0:
build8.1:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=8.0
    - export PHP_VERSION=8.1
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
@@ -76,11 +28,11 @@ build8.0:
    - docker tag open-source/docker/unicaen-image:php${PHP_VERSION} registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}
    - docker push registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}

build8.1:
build8.0:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=8.1
    - export PHP_VERSION=8.0
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
@@ -88,14 +40,14 @@ build8.1:
    - docker tag open-source/docker/unicaen-image:php${PHP_VERSION} registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}
    - docker push registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}

build8.2:
build7.4:
  stage: build
  script:
    - export HTTP_PROXY=http://10.14.128.99:3128
    - export PHP_VERSION=8.2
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t unicaen-dev-php${PHP_VERSION}-apache .
    - export PHP_VERSION=7.4
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t unicaen-dev-php${PHP_VERSION}-apache --no-cache .
    - docker tag unicaen-dev-php${PHP_VERSION}-apache registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker push registre.unicaen.fr:5000/unicaen-dev-php${PHP_VERSION}-apache
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-8.x -t open-source/docker/unicaen-image:php${PHP_VERSION} .
    - docker build --rm --build-arg PHP_VERSION=${PHP_VERSION} --build-arg HTTP_PROXY=${HTTP_PROXY} -f Dockerfile-7.x -t open-source/docker/unicaen-image:php${PHP_VERSION} --no-cache .
    - docker tag open-source/docker/unicaen-image:php${PHP_VERSION} registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}
    - docker push registre.unicaen.fr:5000/open-source/docker/unicaen-image:php${PHP_VERSION}