Skip to content

Commit

Permalink
add morph
Browse files Browse the repository at this point in the history
  • Loading branch information
gomez385 committed Aug 16, 2024
1 parent bd9bb12 commit 89b3085
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions morpheus.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
locals {
morpheus_repos = [
"morpheus-clouds",
]
}


module "morpheus_repos" {
for_each = toset(local.morpheus_repos)
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Repo for morpheus cloud"
repo_org = "CSVD"
name = each.value
github_repo_topics = [
"terraform",
"morpheus",
]
force_name = true
create_codeowners = false
enforce_prs = true
collaborators = { gomez385 = "admin", arnol377 = "admin" }
pull_request_bypassers = local.pull_request_bypassers
managed_extra_files = [
{
path = ".github/workflows/terraform-plan.yaml"
content = templatefile(
"${path.module}/workflows/terraform-plan.yaml.tpl",
{
repo_name = each.value
directory = null
git_owner = {
name = "gomez385"
email = "james.f.gomez@census.gov"
}
}
)
},
{
path = ".github/workflows/terraform-apply.yaml"
content = templatefile(
"${path.module}/workflows/terraform-apply.yaml.tpl",
{
repo_name = each.value
directory = null
}
)
}
]
}

0 comments on commit 89b3085

Please sign in to comment.