How to run jobs on ALL runners that match labels #2006
Unanswered
kevin-brashears-fhr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Azure DevOps Pipelines, using self hosted agents, I could install them on several servers. Then I could write YAML for one release and give it tags to run it on, and it would run it on ALL agents that matched the tags. A practical example is deploying an on prem website to two (or more) servers to be load balanced, and each server has an agent.
On Github Runners however, if I have multiple runners that match the labels, it will only pick one of the runners and run on that, rather than running on all runners that match the labels.
I know I can create a matrix and say run it on these runners using the matrix: -> os: -> name scheme, but then I have to be explicit and have runner names in my YAML which isn't great and means anytime I add a new runner it's a PR - it should be dynamic, using the website example above, that I should be able to add a third server with runner installed to the load balanced website, redeploy and be done because I give it the same labels as the other two.
Beta Was this translation helpful? Give feedback.
All reactions