meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git:gitlab:ci:yaml:dynamic_tags [2025/06/18 15:32] – created niziakgit:gitlab:ci:yaml:dynamic_tags [2025/06/18 15:45] (current) niziak
Line 30: Line 30:
 ===== run pipeline on the same runner ===== ===== run pipeline on the same runner =====
  
-During CI job execution env contains very usefull variable:+It is not possible to detect runner tag during yaml variables expansion because gitlab doesn't schedule jobs. Gitlab-runners periodically connect to Gitlab servers 
 +and asks for jobs. 
  
-<code>CI_RUNNER_TAGS=["linux", "docker", "small", "medium"]</code>+It is possible to check what runner got our job from environment variable: 
 + 
 +<code yaml>CI_RUNNER_TAGS=["linux", "docker", "small", "medium"]</code>
  
 and this variable can be used to generate yaml file for new dynamically generated child pipeline. and this variable can be used to generate yaml file for new dynamically generated child pipeline.