Add CI variable RUNNER_TAG
authorCamilla Conte <cconte@redhat.com>
Mon, 22 May 2023 17:41:53 +0000 (18:41 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 24 May 2023 19:26:40 +0000 (12:26 -0700)
This allows to set a job tag dynamically.
We need this to be able to select the Kubernetes runner.
See https://wiki.qemu.org/Testing/CI/KubernetesRunners.

Signed-off-by: Camilla Conte <cconte@redhat.com>
Message-Id: <20230522174153.46801-5-cconte@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
.gitlab-ci.d/qemu-project.yml

index a7ed447fe487ec23de12f6b4adf45ba77e596c81..4d914c4897b3db65141790b9fce38c82ff182adb 100644 (file)
@@ -1,6 +1,13 @@
 # This file contains the set of jobs run by the QEMU project:
 # https://gitlab.com/qemu-project/qemu/-/pipelines
 
+variables:
+  RUNNER_TAG: ""
+
+default:
+  tags:
+    - $RUNNER_TAG
+
 include:
   - local: '/.gitlab-ci.d/base.yml'
   - local: '/.gitlab-ci.d/stages.yml'