From 4064cd274068b2ac1bec8e67ac85182dd0dba68f Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 9 Jun 2021 10:24:37 +0200
Subject: [PATCH] SW-966: Build a lofar-pulp image on top of pulp

---
 .gitlab-ci.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c544f4dc218..ba318ff9a5e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -121,7 +121,16 @@ build_pulp_docker_image:
   script:
     - git clone https://git.astron.nl/ro/pulp-dockers.git
     - cd pulp-dockers/lofar-pulp
-    - docker build -t ci_lofar_pulp:$CI_COMMIT_SHORT_SHA .
+    - docker build -t ci_pulp:$CI_COMMIT_SHORT_SHA .
+  interruptible: true
+
+
+build_lofar_pulp_docker_image:
+  stage: build
+  script:
+    - docker build --build-arg BASE_VERSION=$CI_COMMIT_SHORT_SHA -t ci_lofar_pulp:$CI_COMMIT_SHORT_SHA Docker/lofar-pipeline
+  needs:
+    - build_pulp_docker_image
   interruptible: true
 
 
-- 
GitLab