gitlab-ci-runner
DeimosCloud/gitlab-ci-runner/google
terraform module to deploy gitlab runner on GCP
GCP GitLab Runner This Terraform modules creates a GitLab CI runner. The runners created by the module use preemptible instances by default for running the builds using the docker+machine executor. - Shared cache in GCS with life cycle management to clear objects after x days. - Runner agents registered automatically. The runner supports: GitLab CI docker-machine runner In this scenario the runner agent is running on a GCP Compute Instance and runners are created by docker machine using preemptible instances. Runners will scale automatically based on the configuration. The module creates a GCS cache by default, which is shared across runners (preemptible instances). GitLab CI docker runner In this scenario _not_ docker machine is used but docker to schedule the builds. Builds will run on t
| Name | Type | Description | Default |
|---|---|---|---|
| region | string | The GCP region to deploy the runner into. | required |
| project | string | The GCP project to deploy the runner into. | required |
| runners_name | string | Name of the runner, will be used in the runner config.toml. | required |
| docker_machine_preemptible | bool | If true, docker-machine instances will be premptible | false |
| runners_limit | number | Limit for the runners, will be used in the runner config.toml. | 0 |
| runners_image | string | Image to run builds, will be used in the runner config.toml | "docker:19.03" |
| runners_pull_policy | string | pull_policy for the runners, will be used in the runner config.toml | "always" |
| cache_storage_class | string | The cache storage class | "STANDARD" |
| runner_machine_image | string | A GCP custom image to use for spinning up runners when using docker-machine | "cos-cloud/global/images/family/cos-97-l |
| docker_machine_disk_type | string | The disk Type for docker-machine instances. | "pd-standard" |
| runners_min_replicas | number | The minimum number of runners to spin up. For docker+machine, this is the min nu | 1 |
| runners_executor | string | The executor to use. Currently supports `docker+machine` or `docker`. | "docker+machine" |
| runners_post_build_script | string | Commands to be executed on the Runner just after executing the build, but before | "\"\"" |
| cache_shared | bool | Enables cache sharing between runners. | true |
| subnetwork | string | Subnetwork used for hosting the gitlab-runners. | "" |
| runners_machine_type | string | Instance type used for the GitLab runner. | "n1-standard-1" |
| runners_shm_size | number | shm_size for the runners, will be used in the runner config.toml | 0 |
| gitlab_runner_version | string | Version of the GitLab runner. Defaults to latest | "" |
| runners_target_autoscale_cpu_utilization | number | The target CPU utilization that the autoscaler should maintain. If runner CPU ut | 0.9 |
| runners_privileged | bool | Runners will run in privileged mode, will be used in the runner config.toml | true |
| runners_pre_build_script | string | Script to execute in the pipeline just before the build, will be used in the run | "\"\"" |
| runners_request_concurrency | number | Limit number of concurrent requests for new jobs from GitLab (default 1) | 1 |
| runners_output_limit | number | Sets the maximum build log size in kilobytes, by default set to 4096 (4MB) | 4096 |
| … and 10 more inputs | |||