From 9c2f7fdef36b5b5c2e0fc4d26b358c3e6def2083 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 22 Jan 2025 11:25:04 -0300 Subject: [PATCH] Add Terraform configuration for provisioning the "quarkus-mcp-servers" GitHub repository and associated team --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-mcp-servers.tf | 35 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 terraform-scripts/quarkus-mcp-servers.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 39715ef..dbc801d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -82,6 +82,7 @@ terraform-scripts/quarkus-lucene.tf @quarkiverse/qua terraform-scripts/quarkus-mailpit.tf @quarkiverse/quarkiverse-mailpit terraform-scripts/quarkus-maven-resolver.tf @quarkiverse/quarkiverse-maven-resolver terraform-scripts/quarkus-mcp-server.tf @quarkiverse/quarkiverse-mcp-server +terraform-scripts/quarkus-mcp-servers.tf @quarkiverse/quarkiverse-mcp-servers terraform-scripts/quarkus-mdns.tf @quarkiverse/quarkiverse-mdns terraform-scripts/quarkus-mfa.tf @quarkiverse/quarkiverse-mfa terraform-scripts/quarkus-micrometer-registry.tf @quarkiverse/quarkiverse-micrometer-registry diff --git a/terraform-scripts/quarkus-mcp-servers.tf b/terraform-scripts/quarkus-mcp-servers.tf new file mode 100644 index 0000000..938ca18 --- /dev/null +++ b/terraform-scripts/quarkus-mcp-servers.tf @@ -0,0 +1,35 @@ +# Create repository +resource "github_repository" "quarkus_mcp_servers" { + name = "quarkus-mcp-servers" + description = "Model Context Protocol Servers in Quarkus" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["mcp"] +} + +# Create team +resource "github_team" "quarkus_mcp_servers" { + name = "quarkiverse-mcp-servers" + description = "mcp-servers team" + create_default_maintainer = false + privacy = "closed" + parent_team_id = data.github_team.quarkiverse_members.id +} + +# Add team to repository +resource "github_team_repository" "quarkus_mcp_servers" { + team_id = github_team.quarkus_mcp_servers.id + repository = github_repository.quarkus_mcp_servers.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_mcp_servers" { + for_each = { for tm in ["maxandersen"] : tm => tm } + team_id = github_team.quarkus_mcp_servers.id + username = each.value + role = "maintainer" +}