From 47d96f562f7858252db1e479a6f25713c90c6847 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Fri, 1 Mar 2024 16:08:01 -0300 Subject: [PATCH] Introduce quarkus-mongock --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-mongock.tf | 36 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-mongock.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3e29f30..7c04411 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -73,6 +73,7 @@ terraform-scripts/quarkus-minio.tf @quarkiverse/qua terraform-scripts/quarkus-mockk.tf @quarkiverse/quarkiverse-mockk terraform-scripts/quarkus-mockerver.tf @quarkiverse/quarkiverse-mockserver terraform-scripts/quarkus-moneta.tf @quarkiverse/quarkiverse-moneta +terraform-scripts/quarkus-mongock.tf @quarkiverse/quarkiverse-mongock terraform-scripts/quarkus-morphia.tf @quarkiverse/quarkiverse-morphia terraform-scripts/quarkus-mybatis.tf @quarkiverse/quarkiverse-mybatis terraform-scripts/quarkus-neo4j.tf @quarkiverse/quarkiverse-neo4j diff --git a/terraform-scripts/quarkus-mongock.tf b/terraform-scripts/quarkus-mongock.tf new file mode 100644 index 0000000..212c302 --- /dev/null +++ b/terraform-scripts/quarkus-mongock.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_mongock" { + name = "quarkus-mongock" + description = "Allows mongock database migrations for MongoDB to be executed during Quarkus startup" + homepage_url = "https://mongock.io/" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "mongock"] +} + +# Create team +resource "github_team" "quarkus_mongock" { + name = "quarkiverse-mongock" + description = "mongock 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_mongock" { + team_id = github_team.quarkus_mongock.id + repository = github_repository.quarkus_mongock.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_mongock" { + for_each = { for tm in ["janknobloch"] : tm => tm } + team_id = github_team.quarkus_mongock.id + username = each.value + role = "maintainer" +}