This commit is contained in:
2023-11-23 12:46:58 -06:00
parent 7ec0452eef
commit c1d2bb7de2
2 changed files with 14 additions and 0 deletions

View File

@@ -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
}

View File

@@ -13,3 +13,7 @@ variable "GITLAB_PROJECT_NAME" {
variable "GITLAB_SHARED_RUNNER_ID" {
type = number
}
variable "OCTOAPI" {
type = string
}