diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 209463135c76d20639e569caa419380a920e32d2..a55ceafb1201787daca1ba05c3befdd11ed0ea2a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,16 +9,17 @@ cache:
     - paths:
         - .cache/pip
 
-
 stages:
     - build
     - deploy
 
 build:
+    stage: build
+
     rules:
         # only run pipeline when build is in the commit message
         - if: $CI_COMMIT_MESSAGE =~ /.*build.*/
-    stage: build
+        - if: $MY_VARIABLE
 
     before_script:
         # Install all required packages