Skip to content

Commit

Permalink
New JsonRPC repo
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Jul 16, 2024
1 parent dba15f3 commit 69e4acb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ terraform-scripts/quarkus-jnosql.tf @quarkiverse/qua
terraform-scripts/quarkus-jooq.tf @quarkiverse/quarkiverse-jooq
terraform-scripts/quarkus-jpastreamer.tf @quarkiverse/quarkiverse-jpastreamer
terraform-scripts/quarkus-jsch.tf @quarkiverse/quarkiverse-jsch
terraform-scripts/quarkus-json-rpc.tf @quarkiverse/quarkiverse-json-rpc
terraform-scripts/quarkus-kafka-streams-processor.tf @quarkiverse/quarkiverse-kafka-streams-processor
terraform-scripts/quarkus-kerberos.tf @quarkiverse/quarkiverse-kerberos
terraform-scripts/quarkus-kiota.tf @quarkiverse/quarkiverse-kiota
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-json-rpc.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_json_rpc" {
name = "quarkus-json-prc"
description = "JsonRPC over WebSocket services with Quarkus"
homepage_url = "https://docs.quarkiverse.io/quarkus-json-rpc/dev/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "json-rpc", "websocket"]
}

# Create team
resource "github_team" "quarkus_json_rpc" {
name = "quarkiverse-json-rpc"
description = "json-rpc 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_json_rpc" {
team_id = github_team.quarkus_json_rpc.id
repository = github_repository.quarkus_json_rpc.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_json_rpc" {
for_each = { for tm in ["phillip-kruger", "tecarter94"] : tm => tm }
team_id = github_team.quarkus_json_rpc.id
username = each.value
role = "maintainer"
}

0 comments on commit 69e4acb

Please sign in to comment.