2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

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 <zygmunt.krynicki@canonical.com>
This commit is contained in:
Zygmunt Krynicki 2025-05-16 11:40:09 +02:00
parent c0e27e0dcb
commit 272ad36df8

View File

@ -259,12 +259,14 @@ image-ubuntu-cloud-24.04-x86_64:
dependencies: [] dependencies: []
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH - if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes: changes:
paths: paths:
- .image-garden.mk - .image-garden.mk
- .gitlab-ci.yml - .gitlab-ci.yml
compare_to: "refs/heads/master" compare_to: "refs/heads/master"
- if: $CI_COMMIT_BRANCH
when: manual
.spread-x86_64: .spread-x86_64:
extends: .image-garden-x86_64 extends: .image-garden-x86_64