From e0a73a0d57c28c183a9342cc70b03a92c22254a3 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 7 May 2024 11:31:52 -0300 Subject: [PATCH 1/2] Introduce quarkus-statiq --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-statiq.tf | 35 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 terraform-scripts/quarkus-statiq.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 908c43e..2bdeab1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -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 diff --git a/terraform-scripts/quarkus-statiq.tf b/terraform-scripts/quarkus-statiq.tf new file mode 100644 index 0000000..d8c1f59 --- /dev/null +++ b/terraform-scripts/quarkus-statiq.tf @@ -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" +} From 862dc282d80b564dd98233fe3bf2342460796ced Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 7 May 2024 11:39:59 -0300 Subject: [PATCH 2/2] Upgrade Terraform --- terraform-scripts/.terraform.lock.hcl | 34 +++++++++++++-------------- terraform-scripts/main.tf | 4 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/terraform-scripts/.terraform.lock.hcl b/terraform-scripts/.terraform.lock.hcl index 5601c5d..c7a1209 100644 --- a/terraform-scripts/.terraform.lock.hcl +++ b/terraform-scripts/.terraform.lock.hcl @@ -2,23 +2,23 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/integrations/github" { - version = "5.44.0" - constraints = "~> 5.0" + version = "6.2.1" + constraints = "~> 6.0" hashes = [ - "h1:Rnz/RYjh5lAupbwQiCtiiqSzXF4H2Gl5z53HjaTja0M=", - "zh:045dcce0f8506d197cd8c78be30e7c43b156c9e65512401a18f7e4f6f5506f6d", - "zh:1687208241080528046a2e404d788a01214659e6bb8a819efe6a8f528ded75ec", - "zh:26be46e3d943746951be0cd85406b9b06ca70708eeb7540c050290db429848c5", - "zh:61870dc63b39a56c33723ffa1f8d14232ad30f506466be011c446d17f6c45520", - "zh:8307fd829fdaefd84722a5bebe5d0cc9e1c7b2362e4b438f14c2a0297676308a", - "zh:8cb716b1def75caa762e5bb3d86c4b7c37b6ae912d8932efd54c0980d8e02f2e", - "zh:9e4070b7ffe4032d0a7cfabd88cbad051548fcc54ee0c24bde8770963631ad14", - "zh:b587595100ac598dbfd9ea7fff282a343e6a80eec405b83a066d7fcf26c1a4b1", - "zh:b859d5cb6031b6c7ab084919c5a080d4b7ee40b1c4236333643a47e77e558f5a", - "zh:be0ffa4f9f42ea337e274b0b182894fa73cbf6820775cffbf216d06fe9205a3d", - "zh:c22da705d168441ae7f597daf8d18e3da5ef256364e4ecfddc81377ff4a6b211", - "zh:d4663d5c158965524768457651c29d9a194ee9004464a836cd893c738177ea2d", - "zh:e3c8c5bf388be9f362ffaf9c080d9de249b589d0a2654793df95055b78d3b7e1", - "zh:fc3682f03d9730d3e2a6f6db9ccd3d239f3787669018a779998217332a12a1d4", + "h1:uDerb9YJo3vAO+wKw+Z064InX5aXom+nKLDry2eGf14=", + "zh:172aa5141c525174f38504a0d2e69d0d16c0a0b941191b7170fe6ae4d7282e30", + "zh:1a098b731fa658c808b591d030cc17cc7dfca1bf001c3c32e596f8c1bf980e9f", + "zh:245d6a1c7e632d8ae4bdd2da2516610c50051e81505cf420a140aa5fa076ea90", + "zh:43c61c230fb4ed26ff1b04b857778e65be3d8f80292759abbe2a9eb3c95f6d97", + "zh:59bb7dd509004921e4322a196be476a2f70471b462802f09d03d6ce96f959860", + "zh:5cb2ab8035d015c0732107c109210243650b6eb115e872091b0f7b98c2763777", + "zh:69d2a6acfcd686f7e859673d1c8a07fc1fc1598a881493f19d0401eb74c0f325", + "zh:77f36d3f46911ace5c50dee892076fddfd64a289999a5099f8d524c0143456d1", + "zh:87df41097dfcde72a1fbe89caca882af257a4763c2e1af669c74dcb8530f9932", + "zh:899dbe621f32d58cb7c6674073a6db8328a9db66eecfb0cc3fc13299fd4e62e7", + "zh:ad2eb7987f02f7dd002076f65a685730705d04435313b5cf44d3a6923629fb29", + "zh:b2145ae7134dba893c7f74ad7dfdc65fdddf6c7b1d0ce7e2f3baa96212322fd8", + "zh:bd6bae3ac5c3f96ad9219d3404aa006ef1480e9041d4c95df1808737e37d911b", + "zh:e89758b20ae59f1b9a6d32c107b17846ddca9634b868cf8f5c927cbb894b1b1f", ] } diff --git a/terraform-scripts/main.tf b/terraform-scripts/main.tf index 376e86f..c6b8070 100644 --- a/terraform-scripts/main.tf +++ b/terraform-scripts/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { github = { source = "integrations/github" - version = "~> 5.0" + version = "~> 6.0" } } @@ -14,7 +14,7 @@ terraform { } } - required_version = "~> 1.7.0" + required_version = "~> 1.8.0" } provider "github" {}