feat: enable shared runner by default
This commit is contained in:
parent
3b41630e91
commit
d78af564d6
2 changed files with 11 additions and 5 deletions
11
main.tf
11
main.tf
|
|
@ -1,9 +1,10 @@
|
||||||
resource "gitlab_project" "project" {
|
resource "gitlab_project" "project" {
|
||||||
name = var.project_name
|
name = var.project_name
|
||||||
path = var.project_path
|
path = var.project_path
|
||||||
description = var.project_desc
|
description = var.project_desc
|
||||||
namespace_id = var.project_namespace_id
|
namespace_id = var.project_namespace_id
|
||||||
default_branch = var.project_default_branch
|
default_branch = var.project_default_branch
|
||||||
|
shared_runners_enabled = var.shared_runners_enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "gitlab_branch_protection" "default_branch_protection" {
|
resource "gitlab_branch_protection" "default_branch_protection" {
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,8 @@ variable "protection_merge_access_level" {
|
||||||
type = string
|
type = string
|
||||||
default = "maintainer"
|
default = "maintainer"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "shared_runners_enabled" {
|
||||||
|
type = bool
|
||||||
|
default = true
|
||||||
|
}
|
||||||
|
|
|
||||||
Reference in a new issue