diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 64b3be4e5aa2de3bdcba68d150bfc16ab8d5037c..35332a75d2b5d1d83a52951c2a0f9f384f1df6fd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,11 +15,7 @@ stages:
 
 build:
     stage: build
-
-    rules:
-        # only run pipeline when build is in the commit message
-        - if: $CI_COMMIT_MESSAGE =~ /.*build.*/
-        - if: $MY_VARIABLE
+    when: manual
 
     before_script:
         # Install all required packages
@@ -37,6 +33,7 @@ build:
 
 deploy:
     stage: deploy
+    when: manual
     needs:
         - build
     before_script: