mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
Merge 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 <zygmunt.krynicki@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1700 Approved-by: Maxime Bélair <maxime.belair@canonical.com> Merged-by: Zygmunt Krynicki <me@zygoon.pl>
This commit is contained in:
commit
2dacf287f2
@ -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
|
image: ubuntu:latest
|
||||||
|
|
||||||
@ -269,8 +275,7 @@ image-ubuntu-cloud-24.04-x86_64:
|
|||||||
- .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
|
- if: $CI_COMMIT_BRANCH && "$[[ inputs.build-test-images ]]" == "true"
|
||||||
when: manual
|
|
||||||
|
|
||||||
.spread-x86_64:
|
.spread-x86_64:
|
||||||
extends: .image-garden-x86_64
|
extends: .image-garden-x86_64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user