Skip to content

Commit

Permalink
chore: revert deployment approver
Browse files Browse the repository at this point in the history
i can't find the issue so let's skip for now
  • Loading branch information
xNok committed Jan 12, 2025
1 parent 1dbf8a6 commit 68768c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion terraform/github-repository/.config.auto.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This configuration file is consumed by Terraform Cloud
tf_organization_name = "nokwebspace"
repo_name = "xNok/infra-bootstrap-tools"
deployement_approver = ["xNok"]
deployement_approver = "xNok"
2 changes: 1 addition & 1 deletion terraform/github-repository/action-ansible-swarm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "github_repository_environment" "docker_swarm" {
repository = data.github_repository.repo.name
environment = "docker_swarm"
reviewers {
users = data.github_user.deployement_approver[*].id
users = [data.github_user.deployement_approver.id]
# teams = [] an entire team can be approver
}
}
Expand Down
3 changes: 1 addition & 2 deletions terraform/github-repository/repo-configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ data "github_repository" "repo" {
}

data "github_user" "deployement_approver" {
for_each = var.deployement_approver
username = each.key
username = var.deployement_approver
}

/**
Expand Down
3 changes: 1 addition & 2 deletions terraform/github-repository/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ variable "repo_name" {
}

variable "deployement_approver" {
type = set(string)
type = string
description = "Your user, it will de added as the approver for the repository"
default = []
}

variable "CADDY_DIGITALOCEAN_API_TOKEN" {
Expand Down

0 comments on commit 68768c9

Please sign in to comment.