From 2cb9015721cc6f0904bf14f73f4ee553a5e63634 Mon Sep 17 00:00:00 2001
From: Ubbo Veentjer <veentjer@sub.uni-goettingen.de>
Date: Tue, 28 Jun 2022 17:27:35 +0200
Subject: [PATCH] deploy only dev-branch and tags to nexus and aptly

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6b0812..4a96078 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'
-- 
GitLab