Project level tags for shared runners
As requested by customer:
We'd like to tag an entire project to say "use the gitlab runner with the tag [omitted]". However, it seems that the only way to specify tags is per-job in the
.gitlab-ci.yml. This seems awkward. When writing new job stanzas, you have to remember to add the
tagshash. Is there a way to say "these two projects use the tag [omitted]" and have the gitlab runner pick up those jobs without having to edit all the jobs in the
Offer a list of shared runner tags which a project can use. This should be configured under Project > Settings > Pipeline > Runner (pencil)
Links / references
"Enter tag list of allowed shared runners"
This will allow your project to build on any shared runners that registered with these tags. Use this option if all of your CI jobs will use the same runner, so that you don't have to specify duplicate tags in each job stanza of your
What is it?
- Project level shared runner tags
Why should someone use this feature?
- To prevent code duplication or changes to code in
.gitlab-ci.ymlfor a value that is constant across the project.
What is the underlying (business) problem?
- This is an improvement request.
How do you use this feature?
- Please see proposal
GitLab CI/CD users and customers.
Make sure these are completed before closing the issue, with a link to the relevant commit.