myoung34 / docker-github-actions-runner

This will run the new self-hosted github actions runners with docker-in-docker
GNU General Public License v3.0
1.63k stars 386 forks source link

Automatically Create Runner Groups via GitHub API #397

Closed christopher-besch closed 2 weeks ago

christopher-besch commented 2 weeks ago

Add the CREATE_RUNNER_GROUP environment variable.

Instead of creating runner groups manually via the web interface, this variable creates them automatically on runner startup.

See: https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#create-a-self-hosted-runner-group-for-an-organization

myoung34 commented 2 weeks ago

This is outside the scope of a runner itself. In the real world I would push to use something like a controller to manage this. The runners job is simply to come up and be available, not manage the existence of outside resources such as groups.

In addition this requires an enterprise level plan to manage groups so it's untestable on my side.