]> git.baikalelectronics.ru Git - uboot.git/commit
CI: Allow job tag to be optionally set globally
authorPeter Hoyes <Peter.Hoyes@arm.com>
Fri, 10 Mar 2023 09:53:02 +0000 (09:53 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 01:04:09 +0000 (21:04 -0400)
commit86df4475a29a4ead8cebe90f6ecc6c8d5cac7fd6
tree1eff2f05acab629806faae84616b936c82508ee3
parent8e2ced0c480b5c846eaa4cefb696e10fe923a183
CI: Allow job tag to be optionally set globally

The default behavior of Gitlab runners is to only run jobs which match
the configured tag, although there is an option to run untagged jobs
[1].

To support running the CI in more complex environments where different
types of runners may be present that support different tags, allow the
DEFAULT_TAG for all jobs in the pipeline to be set globally using an
environment variable. An empty default value is provided to retain
support for untagged runners.

[1] https://docs.gitlab.com/ee/ci/runners/configure_runners.html#use-tags-to-control-which-jobs-a-runner-can-run

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
.gitlab-ci.yml