From 272ad36df8b799099a14a8c6e3d1e4872ca7246c Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Fri, 16 May 2025 11:40:09 +0200 Subject: [PATCH] ci: allow building the spread in master The current logic will only build spread images, for master (which uses protected cache), when the .image-garden.mk or .gitlab-ci.yml files change as compared to master. This is great IF they change and WHEN the cache is hot but right now it seems that this is not the case and master just has no protected cache. Add a manual knob to run the one-off cache job whenever we want to. Signed-off-by: Zygmunt Krynicki --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a0ae6e93..ede550397 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -259,12 +259,14 @@ image-ubuntu-cloud-24.04-x86_64: dependencies: [] rules: - if: $CI_COMMIT_TAG - - if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH + - if: $CI_PIPELINE_SOURCE == "merge_request_event" changes: paths: - .image-garden.mk - .gitlab-ci.yml compare_to: "refs/heads/master" + - if: $CI_COMMIT_BRANCH + when: manual .spread-x86_64: extends: .image-garden-x86_64