Replies: 4 comments 4 replies
-
Fully agree that we need to support multiple runner typs. But preferable tha would be connected to runner tag. The issue today is that github is not seding an event per job, where you use the Till that time I see either 2 approachtes:
Looking for more and better suggestions. |
Beta Was this translation helpful? Give feedback.
-
I trying to archive multiple runners types for other reason. Let's say want to have two runners types - m5.large as default on organization level and m5.xlarge for specific repo. I did experiment a bit and setup two modules, with different instance types(m5.large and m5.xlarge), set different runner_extra_labels and each module connects to it's own github app via webhook. For both I've set idle_config to have 1 idle runner during working hours. However when I run workflow which require m5.xlarge runner, it trigger both github app webhook. And as result lambdas spinup 2 instances - m5.large and m5.xlarge. |
Beta Was this translation helpful? Give feedback.
-
Seems GitHub is working on an event that will sent for every job including the runs-on block. actions/runner#1166 |
Beta Was this translation helpful? Give feedback.
-
GitHub has a private beta for the new workflow_job event. I have already prepared support for the new event. Once the event is available we could use labels in the event to create different types (#1019) |
Beta Was this translation helpful? Give feedback.
-
It is looking like we will need to support multiple runner types for one implementation. I think the module can be modified to do so, re-using as much of the common pieces as possible without creating a completely separate deployment.
The easiest way would be to do a
for_each
loop on therunners
module call. That would create two sets ofscale-up/down
lambdas though. It would also require a new input variable defining all aspects of each runner type. If this variable is not set, it would need to be constructed from the existing variables.Thoughts on this approach?
Beta Was this translation helpful? Give feedback.
All reactions