diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 91ba1c5dd0fd79f45577a24e739af21bb463c7cd..de95e66f001bc8983743142a551cd09af0ef5a35 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,8 +3,6 @@
     tags: [docker]
     retry: 2
     interruptible: true
-    variables:
-        DISTRO: ${CI_JOB_NAME}
     script:
         - apt-get update -yqq
         - apt-get install -yq php-cli
@@ -17,6 +15,8 @@
 
 debian:
     extends: .job
+    variables:
+        DISTRO: debian
     parallel:
         matrix:
             - CODENAME: [jessie, stretch, buster]
@@ -29,6 +29,7 @@ debian:
 ubuntu:
     extends: .job
     variables:
+        DISTRO: ubuntu
         CODENAME: xenial
     before_script:
         - apt-get update -yqq