From a0c98e49d872ddedaaa568f35ea4d207ce124bdb Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Fri, 1 Apr 2022 08:52:06 +0200
Subject: [PATCH] FIX: Pipeline jobs "style" and "cert" depend on a built
 image.

---
 .gitlab-ci.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0d0982..3695761 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -124,7 +124,7 @@ test:
     SERVICE_PORT_2376_TCP_PORT: 2375
   stage: test
   image: $CI_REGISTRY_IMAGE_BASE
-  needs: ["cert"]
+  needs: [cert]
   script:
       - *env
       - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
@@ -210,6 +210,9 @@ cert:
   tags: [docker]
   stage: cert
   image: $CI_REGISTRY_IMAGE
+  needs:
+    - job: build-testenv
+      optional: true
   artifacts:
     paths:
       - .docker/cert/
@@ -222,7 +225,9 @@ style:
   tags: [docker]
   stage: style
   image: $CI_REGISTRY_IMAGE
-  needs: []
+  needs:
+    - job: build-testenv
+      optional: true
   script:
       - autopep8 -r --diff --exit-code .
   allow_failure: true
-- 
GitLab