From d3aec0f71033f830f5d876cc6d35dd0b5113ddd4 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Sat, 4 Jun 2022 15:45:37 +0200 Subject: [PATCH] docker/l3d#115 Properly tag images --- .gitlab-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02501e8..38d0b15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,10 +8,6 @@ php: stage: build parallel: matrix: - #- ALPINE: 3.5 - # PHP: 7.0 - #- ALPINE: 3.7 - # PHP: 7.1 - ALPINE: '3.8' PHP: '7.2' - ALPINE: '3.11' @@ -23,7 +19,7 @@ php: - ALPINE: '3.15' PHP: '8.1' script: - - docker build --pull --build-arg ALPINE_VERSION=${ALPINE} --build-arg PHP_MAJOR_VERSION=${PHP} --build-arg VERSION=${VERSION} -t $CI_REGISTRY_IMAGE:php-${PHP} . - - docker push $CI_REGISTRY_IMAGE:php-${PHP} + - docker build --pull --build-arg ALPINE_VERSION=${ALPINE} --build-arg PHP_MAJOR_VERSION=${PHP} --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION} . + - docker push ${CI_REGISTRY_IMAGE}/php-${PHP}:$[VERSION} only: - - main + - tags -- GitLab