diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7f765299722f1a688be880945e250b16a3090b0e..87dd173fdd8c4fc9e9c6663bdf733f3e1f121180 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,7 +76,7 @@ deploy-prod-release-prod-cscs:
     RELEASE_NAME: EBRAINS-23.06
   resource_group: shared-NFS-mount-prod-cscs
   rules:
-    - if: $CI_COMMIT_BRANCH =~ /ebrains/
+    - if: $CI_COMMIT_BRANCH =~ /^ebrains/
       when: manual
 
 # Deploy the production release of tools (manual pipeline)
@@ -94,7 +94,7 @@ deploy-prod-release-prod-jsc:
     RELEASE_NAME: EBRAINS-23.06
   resource_group: shared-NFS-mount-prod-jsc
   rules:
-    - if: $CI_COMMIT_BRANCH =~ /ebrains/
+    - if: $CI_COMMIT_BRANCH =~ /^ebrains/
       when: manual
 
 # Deploy the experimental release of tools (sheduled pipeline)