Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce quarkus-statiq #232

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
34 changes: 17 additions & 17 deletions terraform-scripts/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions terraform-scripts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}

Expand All @@ -14,7 +14,7 @@ terraform {
}
}

required_version = "~> 1.7.0"
required_version = "~> 1.8.0"
}

provider "github" {}
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"
}
Loading