Skip to content

Commit

Permalink
adding repo for csvd-test-ew aws account
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Oct 31, 2024
1 parent 7b87310 commit 0014ec9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repolist.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ resource "github_team" "terraform_reviewers" {
}

resource "github_team_members" "terraform_reviewer_members" {
team_id = github_team.terraform_reviewers.id
team_id = github_team.terraform_reviewers.id

dynamic members {
for_each = toset([for member, role in local.collaborators : member ])
dynamic "members" {
for_each = toset([for member, role in local.collaborators : member])
content {
username = members.key
role = "member"
Expand Down
38 changes: 38 additions & 0 deletions runner_workspaces.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
locals {
runner_workspaces = [
for repo in [
#"csvd-common-ew",
#"csvd-dev-ew",
"csvd-test-ew"
] :
{
description = "Workspace for ghe-runners and github-runner-image"
repo_org = "CSVD"
name = "github-runners-${repo}"
repo_topics = [
"terraform-tools",
"github-actions"
]
}
]
}

module "runner_workspaces" {
source = "HappyPathway/repo/github"
for_each = tomap({ for repo in local.runner_workspaces : repo.name => repo })
#github_codeowners_team = "CSVD"
github_repo_description = each.value.description
repo_org = each.value.repo_org
name = each.value.name
github_repo_topics = each.value.repo_topics
template_repo = "github-runners-workspace"
template_repo_org = "CSVD"
force_name = true
create_codeowners = false
enforce_prs = true
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_is_private = false
github_org_teams = local.github_organization_teams
}

0 comments on commit 0014ec9

Please sign in to comment.