From a90efee1d59b2c64b9bef4834b532c74a191b43c Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 5 Feb 2023 15:43:44 +0200
Subject: [PATCH] CI dependencies.

Set the dependencies between jobs (for images that depend on other
images in this repo).
---
 .gitlab-ci.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ead83df..8b6cabd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,6 +28,8 @@ build-cgit:
   extends: .container-build
   variables:
     CONTEXT: cgit
+  needs:
+    - job: push-httpd
 
 push-cgit:
   extends: .container-push
@@ -138,6 +140,8 @@ build-webdav:
   extends: .container-build
   variables:
     CONTEXT: webdav
+  needs:
+    - job: push-httpd
 
 push-webdav:
   extends: .container-push
@@ -170,6 +174,8 @@ build-youtube-dl:
   extends: .container-build
   variables:
     CONTEXT: youtube-dl
+  needs:
+    - job: push-toolbx
 
 push-youtube-dl:
   extends: .container-push
@@ -218,6 +224,8 @@ build-workbench:
   extends: .container-build
   variables:
     CONTEXT: workbench
+  needs:
+    - job: push-toolbx
 
 push-workbench:
   extends: .container-push
-- 
GitLab