mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 21:38:15 +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> (cherry picked from commit 272ad36df8b799099a14a8c6e3d1e4872ca7246c) Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
b6bb081738
commit
9d9ef3f977
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user