Skip to content

Commit

Permalink
Introduce quarkus-shedlock
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Feb 26, 2024
1 parent 9e198ca commit e88f371
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 @@ -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
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-shedlock.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit e88f371

Please sign in to comment.