Added "gitlab" type to 01-resman Stage

This commit is contained in:
Alexander Meissner 2022-04-19 11:09:33 +02:00 committed by GitHub
parent 53fde432c4
commit 7b30aa2c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -99,10 +99,10 @@ variable "cicd_repositories" {
condition = alltrue([
for k, v in coalesce(var.cicd_repositories, {}) :
v == null || (
contains(["github"], coalesce(try(v.type, null), "null"))
contains(["gitlab", "github"], coalesce(try(v.type, null), "null"))
)
])
error_message = "Invalid repository type, supported types: 'github'."
error_message = "Invalid repository type, supported types: 'github' or 'gitlab'."
}
}