From 40de9c9afde5b3b579d44a254e6e03c7e2ec357d Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Wed, 11 Dec 2024 11:26:37 +0100 Subject: [PATCH] we rarely need to build and deploy the LTA/SCU images. Code base hardly changes. If we do need to build and deploy them, then fix them. For now, accept the broken image, and do not build to save resources and failure warnings --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 221ba17b98c..32ab644a8b0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,6 +81,22 @@ variables: # # PREPARE BASE STAGE # +prepare_ci_base_docker_image: + stage: prepare-base + rules: + - if: '$CI_COMMIT_BRANCH !~ /Front-End-Only/' + before_script: + - *prepare_registry + script: + - docker pull ${REGISTRY_PATH}/ci_base:latest || true + - docker build -t ${REGISTRY_PATH}/ci_base:$CI_COMMIT_SHORT_SHA -f Docker/lofar-ci/Dockerfile_ci_base . + - docker tag ${REGISTRY_PATH}/ci_base:latest ${REGISTRY_PATH}/ci_base:$CI_COMMIT_SHORT_SHA + - docker push ${REGISTRY_PATH}/ci_base:$CI_COMMIT_SHORT_SHA + interruptible: true + allow_failure: true # current image is based on CentOS 7, for which some repositories are now down + when: manual # JS 20241211: we rarely need to build and deploy the LTA/SCU images. Code base hardly changes. If we do need to build and deploy them, then fix them. For now, accept the broken image, and do not build to save resources and failure warnings. + + prepare_ci_base_ubuntu_docker_image: stage: prepare-base rules: -- GitLab