Skip to content
Snippets Groups Projects
Commit 3719eaca authored by jurgenhaas's avatar jurgenhaas
Browse files

Build tagged versions for PHP 7.0, 7.1 and 7.2

parent ec8c7e59
No related branches found
No related tags found
No related merge requests found
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-master: php-7.0:
stage: build stage: build
script: script:
- docker build --pull -t $CI_REGISTRY_IMAGE . - docker build --pull --build-arg PHP_VERSION=7.0 -t $CI_REGISTRY_IMAGE:php-7.0 .
- docker push $CI_REGISTRY_IMAGE - docker push $CI_REGISTRY_IMAGE:php-7.0
only:
- master
php-7.1:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.1 -t $CI_REGISTRY_IMAGE:php-7.1 .
- docker push $CI_REGISTRY_IMAGE:php-7.1
only:
- master
php-7.2:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.2 -t $CI_REGISTRY_IMAGE:php-7.2 .
- docker push $CI_REGISTRY_IMAGE:php-7.2
only: only:
- master - master
FROM registry.lakedrops.com/docker/gitlab-drupal-ci ARG PHP_VERSION
FROM registry.lakedrops.com/docker/gitlab-drupal-ci:php-$PHP_VERSION
LABEL com.example.vendor="LakeDrops" \ LABEL com.example.vendor="LakeDrops" \
maintainer="juergen.haas@lakedrops.com" \ maintainer="juergen.haas@lakedrops.com" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment