From 124a2a36375e6248ea32fedd347ac1a29905cd07 Mon Sep 17 00:00:00 2001
From: Eduard Frankford <e.frankford@student.uibk.ac.at>
Date: Sun, 19 Jun 2022 16:31:06 +0200
Subject: [PATCH] added deployment to be dependend on passing tests

---
 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 062cdd821..c2bec9902 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -155,6 +155,9 @@ docker-push:
   only:
     refs:
       - development
+  dependencies:
+    - maven-test
+    - frontend-test
   variables:
     REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
     IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
@@ -168,7 +171,9 @@ deploy:
     refs:
       - development
   dependencies:
-    - 'docker-push'
+    - docker-push
+    - maven-test
+    - frontend-test
   image: ubuntu:20.04
   before_script:
     - apt-get update -qy
-- 
GitLab