diff mbox series

[meta-zephyr,2/5,langdale] CI: add tags to all jobs

Message ID 20221216154147.1524548-2-peter.hoyes@arm.com
State New
Headers show
Series [meta-zephyr,1/5,langdale] CI: Add variables needed for k8s runners | expand

Commit Message

Peter Hoyes Dec. 16, 2022, 3:41 p.m. UTC
From: Peter Hoyes <Peter.Hoyes@arm.com>

Tag all jobs with the DEFAULT_TAG variable so each instance can control
what tags the jobs have.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
---
 .gitlab-ci.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 616626a..7ec0bd0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@  image: ghcr.io/siemens/kas/kas:latest-release
 
 variables:
   CPU_REQUEST: ""
+  DEFAULT_TAG: ""
   # These are needed as the k8s executor doesn't respect the container
   # entrypoint by default
   FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: 0
@@ -13,6 +14,8 @@  stages:
 
 # Common job fragment to get a worker ready
 .setup:
+  tags:
+    - $DEFAULT_TAG
   stage: build
   interruptible: true
   variables:
@@ -65,7 +68,8 @@  machine-coverage:
   script:
     - ./ci/check-machine-coverage
   coverage: '/Coverage: \d+/'
-
+  tags:
+    - $DEFAULT_TAG
 
 #
 # Build stage, the actual build jobs