diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18c38250d8928d9fd055b02757d0ca947d25650c..3788836bd7612059e7f2e2cfc3f57debe0a3874a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,7 +34,4 @@ docker-build:
   # Run this job in a branch where a Dockerfile exists
   rules:
     - changes:
-      - Dockerfile
-    - if: $CI_COMMIT_BRANCH
-      exists:
-        - Dockerfile
+      - Dockerfile
\ No newline at end of file