diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8546299745fe5571bcebd2c670fc31c4a947091..1000184572128e0899d29cc103cfe8b1f08639d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,7 +47,7 @@ install:
     - lib/
     - pyvenv.cfg
   rules:
-    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $COMPILE_DOCKER == null
+    - if: $COMPILE_DOCKER == null
 
 pep8:
   stage: lint