Skip to content

Commit

Permalink
adding workspaces to current repos
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Oct 18, 2024
1 parent 50afacb commit f9fe3a0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions repolist.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ module "repo_list" {
github_org_teams = local.github_organization_teams
}


module "workspace" {
source = "HappyPathway/workspace/github"
for_each = tomap({ for repo in var.repolist : repo.name => repo })
runner_group = "229685449397"
repo_name = each.value.name
repo_org = each.value.repo_org
reviewers = 1
protected_branches = true
custom_branch_policies = true
environment = "default"
branch = {
name = "main"
}
}

0 comments on commit f9fe3a0

Please sign in to comment.