diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 26b8dabfbdc8d17ba0f527d6e7a5bfd690322c16..b8b401d7be7b80e963ddcf24a731f867de62e6b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,10 +13,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'
@@ -28,7 +24,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