From 5aed9e8a507bdced0c0bfe6e6481d303c0985cad Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Thu, 22 May 2025 08:31:24 +0200 Subject: [PATCH] ci: build test images explicitly when requested The recent change to make CI pipeline build test images on a manual trigger masks the outcome of the pipeline. Let's use the new inputs [1] feature to allow manually triggering the pipeline with an explicitly built image instead. [1] https://docs.gitlab.com/ci/inputs/ Signed-off-by: Zygmunt Krynicki --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 134bdd23c..13aebbe74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,9 @@ +spec: + inputs: + build-test-images: + default: false + type: boolean + description: Explicitly build virtual machine images used by integration tests. --- image: ubuntu:latest @@ -269,8 +275,7 @@ image-ubuntu-cloud-24.04-x86_64: - .image-garden.mk - .gitlab-ci.yml compare_to: "refs/heads/master" - - if: $CI_COMMIT_BRANCH - when: manual + - if: $CI_COMMIT_BRANCH && "$[[ inputs.build-test-images ]]" == "true" .spread-x86_64: extends: .image-garden-x86_64