diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-11 12:36:55 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-11 12:43:17 +0100 |
commit | ce6f9d77c80849d11b442cf4c6783ec972456521 (patch) | |
tree | 1f08e432477c2f76429a4ecb0753f4590331830e /src/config | |
parent | 0737188dd12a389c419e51d9c208647b4f6732e4 (diff) |
Add allowlist feature
This patch adds the "allowlist" feature for packages.
A package can have a list of allowed images to be built on - butido will
not execute the submit if one package is not allowed on the image
passed to butido.
This is the opposite of the denylist, of course.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/util.rs b/src/config/util.rs index 27fc530..9255c34 100644 --- a/src/config/util.rs +++ b/src/config/util.rs @@ -46,6 +46,11 @@ pub fn default_package_print_format() -> String { {{#each p.flags}}{{this}} {{/each~}} {{/if~}} + {{~#if print_allowed_images}} + Only supported on: + {{#each p.allowed_images}}{{this}} + {{/each~}} + {{/if~}} {{~#if print_deny_images}} Denied on: {{#each p.deny_on_images}}{{this}} |