meta data for this page
This is an old revision of the document!
dynamic runner tag
Variable expansion in tags works.
Simple runner tag can be set as shown:
variables: RUNNER_TAG: "staging" job: tags: - $RUNNER_TAG
tags: - ${CI_COMMIT_BRANCH}
Not possible to define array of strings as variable:
variables: RUNNER_TAG: [ "staging", "test" ] # LINT ERROR job: tags: $RUNNER_TAGS
run pipeline on the same runner
During CI job execution env contains very usefull variable:
CI_RUNNER_TAGS=["linux", "docker", "small", "medium"]
and this variable can be used to generate yaml file for new dynamically generated child pipeline.