Skip to content

Commit

Permalink
fix: project variables, deploy_keys var name
Browse files Browse the repository at this point in the history
  • Loading branch information
KoLiBer committed Sep 10, 2024
1 parent 4025f0b commit b72d94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ resource "gitlab_project_variable" "this" {

project = gitlab_project.this[each.value.project].id
environment_scope = coalesce(each.value.xval.scope, "*")
key = each.value.key
key = each.value.xkey
value = each.value.xval.value
masked = can(regex("\\A\\w{8,}\\z", each.value.xval.value))
protected = each.value.xval.scope != null
Expand All @@ -102,7 +102,7 @@ resource "gitlab_deploy_key" "this" {
for_each = {
for item in flatten([
for key, val in var.projects : [
for xkey, xval in val.variables : {
for xkey, xval in val.deploy_keys : {
key = "${key}_${xkey}"
value = {
project = key
Expand Down

0 comments on commit b72d94b

Please sign in to comment.