1
0
Fork 0

feat: initial commit

This commit is contained in:
Vojtěch Mareš 2021-11-27 11:14:20 +01:00
commit b406d732c3
11 changed files with 197 additions and 0 deletions

14
main.tf Normal file
View 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
}