diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6b081234e775608ee622b2a2e90447f58051109..4a960783d4b9c11c342ae93e1160aa97320b7a0c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -87,6 +87,9 @@ test:
 
 # Build and deploy all the JARs to GWDG Nexus, and build all the DEBs and store DEBs to artifacts.
 build_and_deploy:
+  only:
+    - develop
+    - tags
   image: maven:3.8.3-jdk-8
   stage: build
   script:
@@ -141,7 +144,7 @@ deploy_aggregator_dev:
 
 deploy_aggregator_prd:
   only:
-    - main
+    - tags
   variables:
     PNAME: 'aggregator'
     PPATH: './target'