diff --git a/TERRAFORM.GITLAB.PROJECTS/main.tf b/TERRAFORM.GITLAB.PROJECTS/main.tf index d786dd4..a35483f 100644 --- a/TERRAFORM.GITLAB.PROJECTS/main.tf +++ b/TERRAFORM.GITLAB.PROJECTS/main.tf @@ -20,6 +20,8 @@ resource "gitlab_project" "project" { squash_option = "default_on" ci_config_path = ".gitlab/.gitlab-ci.yml" shared_runners_enabled = false + visibility_level = "public" + ci_forward_deployment_enabled = true } resource "gitlab_branch_protection" "master" { @@ -42,3 +44,11 @@ resource "gitlab_project_runner_enablement" "k3s" { project = gitlab_project.project.id runner_id = var.GITLAB_SHARED_RUNNER_ID } + +resource "gitlab_project_variable" "OCTOAPI" { + project = gitlab_project.project.id + key = "OCTOAPI" + value = var.OCTOAPI + protected = false + masked = true +} diff --git a/TERRAFORM.GITLAB.PROJECTS/variables.tf b/TERRAFORM.GITLAB.PROJECTS/variables.tf index 606f4c8..b17de0c 100644 --- a/TERRAFORM.GITLAB.PROJECTS/variables.tf +++ b/TERRAFORM.GITLAB.PROJECTS/variables.tf @@ -13,3 +13,7 @@ variable "GITLAB_PROJECT_NAME" { variable "GITLAB_SHARED_RUNNER_ID" { type = number } + +variable "OCTOAPI" { + type = string +}