Add variable and functionality to assign runner to Runner Group during registration
drachkov opened this issue · 3 comments
TL;DR
Based on current code level there is no possibility to specify a Runner Group for Enterprise organization accounts. Currently all registered new runners are automatically assigned to Default
Runners Group.
Hence, the suggestion is to add an option to register runner and assign to the group(s) as part of this module for MIG native VMs and containers.
Documentation upon groups can be found here.
Thanks
Terraform Resources
# Add variable
variable "gh_runner_group" {
type = string
description = "GitHub runner group"
default = "Default"
}
Detailed design
The change would most likely need to happen in startup scripts (VMs) and entrypoint.sh (containers) for /runner/config.sh
parameters. Something like that:
RUNNER_ALLOW_RUNASROOT=1 /runner/config.sh --unattended --replace --work "/runner-tmp" --url "$REPO_URL" --token "$ACTIONS_RUNNER_INPUT_TOKEN" --runnergroup "$ACTIONS_RUNNER_GROUP"
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Any update on this?
Thanks
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days