From f02fdfef96834fede69b217939694ad054d26b3c Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Thu, 21 Sep 2023 10:10:22 +0200
Subject: [PATCH] L2SS-1530: fix lofar-device-image building

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 91f2d43c8..a4f72625d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,7 +115,6 @@ docker_build_image:
   parallel:
     matrix:
       - IMAGE:
-          - lofar-device-base
           - ec-sim
           - http-json-schemas
           - prometheus
@@ -136,6 +135,15 @@ docker_build_image:
     #    Do not remove 'bash' or statement will be ignored by primitive docker shell
     - bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh $IMAGE $tag
 
+docker_build_image_device_base:
+  extends: .base_docker_images
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+    - if: ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || $CI_COMMIT_TAG
+  script:
+    #    Do not remove 'bash' or statement will be ignored by primitive docker shell
+    - bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh lofar-device-base $tag
+
 newline_at_eof:
   stage: linting
   before_script:
-- 
GitLab