aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPeter Hoyes <Peter.Hoyes@arm.com>2023-03-10 09:53:02 +0000
committerTom Rini <trini@konsulko.com>2023-03-21 21:04:09 -0400
commit8b0b50170d659ccb7d9f5905205982a00f6ba990 (patch)
tree1eff2f05acab629806faae84616b936c82508ee3 /.gitlab-ci.yml
parente567073018db5e515ea24ddca69f70e0ee33432e (diff)
downloadu-boot-8b0b50170d659ccb7d9f5905205982a00f6ba990.tar.gz
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>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd5cf7ff507..d2103d28b05 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,12 @@
# SPDX-License-Identifier: GPL-2.0+
+variables:
+ DEFAULT_TAG: ""
+
+default:
+ tags:
+ - ${DEFAULT_TAG}
+
# Grab our configured image. The source for this is found
# in the u-boot tree at tools/docker/Dockerfile
image: trini/u-boot-gitlab-ci-runner:jammy-20230308-21Mar2023