gitlab-runner
allyrr/gitlab-runner/google
Terraform module for a dynamically configurable amount of GitLab runners in Google. Can use preemptible or regular on-demand VMs.
Autoscale GitLab Runner on Google VM The purpose of this module is to create "GitLab Manager" VM, configure it and register "GitLab runner(s)" which allows automatically spin up and down VMs to make sure your builds get processed immediately. Features - Use preemptible or regular on-demand VMs - There is ability to configure from 1 to N amounts of runners inside gitlab_register_runner variable each with its own attributes - Supports docker images for CI/CD jobs stored in private GCR rregistry. Such code in .gitlab-ci.yml is available: `` test: stage: mystage image: us.gcr.io/ / / : script: ... ` - Forked version of docker+machine executor - Distributed runners caching is enabled from the box Requirements Runners can be configured as shared|group|specific. Based on the above the appropriate
| Name | Type | Description | Default |
|---|---|---|---|
| gitlab_registration_token | string | Registration token. Can be found under Settings > CI/CD and expand the Runners s | required |
| gcp_zone | string | GCP default zone | required |
| gitlab_register_runner | any | Map of different GitLab runners and their attributes. For more info refer 1) Goo | required |
| gcp_project_id | string | GCP project id | required |
| gcp_region | string | GCP default region | required |
| gcp_gitlab_resource_prefix | string | Name prefix for all the resources | "gitlab" |
| gcp_gcs_cache_age | number | Time in days to keep the GitLab's cache in the GCS bucket | 60 |
| gcp_main_vpc_sub_ip_range | string | GCP default subnetwork ip range | "10.10.0.0/20" |
| gitlab_docker_machine_release | string | Release version of forked docker-machine. Available releases: https://gitlab.com | "v0.16.2-gitlab.11" |
gitlab-manager — String to SSH into a GitLab manager VM via IAP