GitLab CI and Distributed Builds
How to automate the creation of GitLab Runners

How to automate the creation of GitLab Runners

7/6/2023 · Darren Eastman

What this post added

This post introduces a new workflow for automating the creation and registration of GitLab Runners, replacing the legacy runner registration token with access tokens. It details the steps involved: creating an access token (personal, group, or project), using this token to create a runner configuration via the API (e.g., using `curl`), and then automating the installation and registration of the runner application on a target compute host using infrastructure as code (Terraform) and cloud-init scripts. It also highlights the concept of reusable runner configurations for managing fleets at scale and improving UI clarity.

Read the original post ↗