Provision group runners with G... Note
GitLab

Provision group runners with Google Cloud Platform and GitLab CI

Setting up a GitLab Runner to run pipelines on your own infrastructure can be a daunting task, but GitLab's Google Cloud Integration makes it easier. This tutorial teaches you how to set up a new group runner on GitLab.com using Google Cloud Platform in under 10 minutes. To start, you need a terminal with Bash installed, owner access on a Google Cloud Platform project, Terraform or OpenTofu version 1.5 or greater, and the gcloud CLI. The first step is to create a new group runner under Build > Runners > New Group Runner and configure its tags and description. You then select Google Cloud and fill out your project ID, region, zone, and machine type. After filling out the information, you click Setup instructions and run the provided bash script. You also create a main.tf file and follow the instructions in GitLab. Once provisioned, you can see the newly provisioned runner and add a .gitlab-ci.yml file to test it. With your GitLab Runner set up, consider optimizing it for your specific use case by checking the runner's size, dependencies, and infrastructure as code.