update
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -13,3 +13,7 @@ variable "GITLAB_PROJECT_NAME" {
|
||||
variable "GITLAB_SHARED_RUNNER_ID" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "OCTOAPI" {
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user