From d78af564d61bc04d01609032f44c2ebcb0ce22c2 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 27 Nov 2021 13:16:13 +0100 Subject: [PATCH] feat: enable shared runner by default --- main.tf | 11 ++++++----- variables.tf | 5 +++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index 5945499..2e6243f 100644 --- a/main.tf +++ b/main.tf @@ -1,9 +1,10 @@ resource "gitlab_project" "project" { - name = var.project_name - path = var.project_path - description = var.project_desc - namespace_id = var.project_namespace_id - default_branch = var.project_default_branch + name = var.project_name + path = var.project_path + description = var.project_desc + namespace_id = var.project_namespace_id + default_branch = var.project_default_branch + shared_runners_enabled = var.shared_runners_enabled } resource "gitlab_branch_protection" "default_branch_protection" { diff --git a/variables.tf b/variables.tf index 0dc1dae..121cd0d 100644 --- a/variables.tf +++ b/variables.tf @@ -28,3 +28,8 @@ variable "protection_merge_access_level" { type = string default = "maintainer" } + +variable "shared_runners_enabled" { + type = bool + default = true +}