Skip to content

Commit

Permalink
Introduce quarkus-statiq
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 7, 2024
1 parent 5d8b451 commit 4c2ab8f
Show file tree
Hide file tree
Showing 2 changed files with 36 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 @@ -114,6 +114,7 @@ terraform-scripts/quarkus-shedlock.tf @quarkiverse/qua
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
terraform-scripts/quarkus-statiq.tf @quarkiverse/quarkiverse-statiq
terraform-scripts/quarkus-systemd-notify.tf @quarkiverse/quarkiverse-systemd-notify
terraform-scripts/quarkus-tekton-client.tf @quarkiverse/quarkiverse-tekton-client
terraform-scripts/quarkus-tika.tf @quarkiverse/quarkiverse-tika
Expand Down
35 changes: 35 additions & 0 deletions terraform-scripts/quarkus-statiq.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Create repository
resource "github_repository" "quarkus_statiq" {
name = "quarkus-statiq"
description = "An extension to generate/publish static pages from your Quarkus web-app"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "web", "static", "generate", "blog"]
}

# Create team
resource "github_team" "quarkus_statiq" {
name = "quarkiverse-statiq"
description = "statiq 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_statiq" {
team_id = github_team.quarkus_statiq.id
repository = github_repository.quarkus_statiq.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_statiq" {
for_each = { for tm in ["ia3andy"] : tm => tm }
team_id = github_team.quarkus_statiq.id
username = each.value
role = "maintainer"
}

0 comments on commit 4c2ab8f

Please sign in to comment.