feat: initial commit
This commit is contained in:
commit
b406d732c3
11 changed files with 197 additions and 0 deletions
14
main.tf
Normal file
14
main.tf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
}
|
||||
|
||||
resource "gitlab_branch_protection" "default_branch_protection" {
|
||||
project = gitlab_project.project.id
|
||||
branch = var.project_default_branch
|
||||
push_access_level = var.protection_push_access_level
|
||||
merge_access_level = var.protection_merge_access_level
|
||||
}
|
||||
Reference in a new issue