From e88f371a1caf342b47a81d038798c8d26db20af6 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 26 Feb 2024 12:26:58 -0300 Subject: [PATCH] Introduce quarkus-shedlock --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-shedlock.tf | 36 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-shedlock.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7ddf9a6..3e29f30 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -107,6 +107,7 @@ terraform-scripts/quarkus-sa-token.tf @quarkiverse/qua terraform-scripts/quarkus-scala3.tf @quarkiverse/quarkiverse-scala terraform-scripts/quarkus-semantic-kernel.tf @quarkiverse/quarkiverse-semantic-kernel terraform-scripts/quarkus-shardingsphere-jdbc.tf @quarkiverse/quarkiverse-shardingsphere-jdbc +terraform-scripts/quarkus-shedlock.tf @quarkiverse/quarkiverse-shedlock terraform-scripts/quarkus-smallrye-opentracing.tf @quarkiverse/quarkiverse-smallrye-opentracing terraform-scripts/quarkus-snappy.tf @quarkiverse/quarkiverse-snappy terraform-scripts/quarkus-sshd.tf @quarkiverse/quarkiverse-sshd diff --git a/terraform-scripts/quarkus-shedlock.tf b/terraform-scripts/quarkus-shedlock.tf new file mode 100644 index 0000000..0aa80fa --- /dev/null +++ b/terraform-scripts/quarkus-shedlock.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_shedlock" { + name = "quarkus-shedlock" + description = "Distributed lock for your scheduled tasks in Quarkus" + homepage_url = "https://github.com/lukas-krecan/ShedLock" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "shedlock"] +} + +# Create team +resource "github_team" "quarkus_shedlock" { + name = "quarkiverse-shedlock" + description = "shedlock 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_shedlock" { + team_id = github_team.quarkus_shedlock.id + repository = github_repository.quarkus_shedlock.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_shedlock" { + for_each = { for tm in ["dcdh"] : tm => tm } + team_id = github_team.quarkus_shedlock.id + username = each.value + role = "maintainer" +}