diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4e915439982e146ddfaf31ae974b2a16c13b7d7d..b8c46e053ca2f063e3b4c161523b7177bd0a6cfb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,7 @@ tests:
     paths:
       - node_modules/
   rules:
-    - if: '$CI_PUSH_OPTION_CI_VARIABLE == null' 
+    - if: $DEPLOY_VERSION == null
 
 web-tests:
   stage: test
@@ -54,7 +54,7 @@ web-tests:
     paths:
       - screenshot.png
   rules:
-    - if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
+    - if: $DEPLOY_VERSION == null
 
 release:
   stage: release
@@ -64,7 +64,7 @@ release:
     - nix develop .#gitlab --command release
   when: on_success
   rules:
-    - if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
+    - if: $DEPLOY_VERSION == null
       
 deploy:
   stage: deploy
@@ -74,6 +74,6 @@ deploy:
     - nix develop .#gitlab --command build-and-publish
   when: on_success
   rules:
-    - if: $CI_PUSH_OPTION_CI_VARIABLE
+    - if: $DEPLOY_VERSION
       when: always
   
\ No newline at end of file