Project level tags for shared runners
Description
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 thetags
hash. 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.gitlab-ci.yml
?
Proposal
Offer a list of shared runner tags which a project can use. This should be configured under Project > Settings > Pipeline > Runner (pencil)
Links / references
ZD: https://gitlab.zendesk.com/agent/tickets/80081
Documentation blurb
"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 .gitlab-ci.yml
.
Overview
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.yml
for 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
Use cases
GitLab CI/CD users and customers.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml