mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +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 272ad36df8
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
b6bb081738
commit
9d9ef3f977
@@ -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
|
||||||
|
Reference in New Issue
Block a user