gitlab-ci-runner

DeimosCloud/gitlab-ci-runner/google

Terraform Module HCL GOOGLE

terraform module to deploy gitlab runner on GCP

Install
module "gitlab-ci-runner" {
source = "DeimosCloud/gitlab-ci-runner/google"
version = "1.2.1"
}
plain text: /constructs/tfmod-deimoscloud-gitlab-ci-runner-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (50)
NameTypeDescriptionDefault
regionstringThe GCP region to deploy the runner into. required
projectstringThe GCP project to deploy the runner into. required
runners_namestringName of the runner, will be used in the runner config.toml. required
docker_machine_preemptibleboolIf true, docker-machine instances will be premptiblefalse
runners_limitnumberLimit for the runners, will be used in the runner config.toml.0
runners_imagestringImage to run builds, will be used in the runner config.toml"docker:19.03"
runners_pull_policystringpull_policy for the runners, will be used in the runner config.toml"always"
cache_storage_classstringThe cache storage class"STANDARD"
runner_machine_imagestringA GCP custom image to use for spinning up runners when using docker-machine"cos-cloud/global/images/family/cos-97-l
docker_machine_disk_typestringThe disk Type for docker-machine instances."pd-standard"
runners_min_replicasnumberThe minimum number of runners to spin up. For docker+machine, this is the min nu1
runners_executorstringThe executor to use. Currently supports `docker+machine` or `docker`."docker+machine"
runners_post_build_scriptstringCommands to be executed on the Runner just after executing the build, but before"\"\""
cache_sharedboolEnables cache sharing between runners.true
subnetworkstringSubnetwork used for hosting the gitlab-runners.""
runners_machine_typestringInstance type used for the GitLab runner."n1-standard-1"
runners_shm_sizenumbershm_size for the runners, will be used in the runner config.toml0
gitlab_runner_versionstringVersion of the GitLab runner. Defaults to latest""
runners_target_autoscale_cpu_utilizationnumberThe target CPU utilization that the autoscaler should maintain. If runner CPU ut0.9
runners_privilegedboolRunners will run in privileged mode, will be used in the runner config.tomltrue
runners_pre_build_scriptstringScript to execute in the pipeline just before the build, will be used in the run"\"\""
runners_request_concurrencynumberLimit number of concurrent requests for new jobs from GitLab (default 1)1
runners_output_limitnumberSets the maximum build log size in kilobytes, by default set to 4096 (4MB)4096
… and 10 more inputs
Resources (11)
google_compute_firewallgoogle_compute_instance_templategoogle_compute_region_autoscalergoogle_compute_region_instance_group_managergoogle_monitoring_metric_descriptorgoogle_project_iam_membergoogle_service_accountgoogle_service_account_iam_membergoogle_service_account_keyrandom_idrandom_shuffle
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.1
Cloud GOOGLE
★ Stars13
Forks18
Total downloads16.0k
Inputs50
Resources11
Submodules2
LicenseApache-2.0
NamespaceDeimosCloud
Updated