Skip to content

Commit

Permalink
Introduce quarkus-mailpit
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 13, 2023
1 parent 9a212a9 commit 6eccb52
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 @@ -55,6 +55,7 @@ terraform-scripts/quarkus-logging-manager.tf @quarkiverse/quark
terraform-scripts/quarkus-logging-sentry.tf @quarkiverse/quarkiverse-logging-sentry
terraform-scripts/quarkus-logging-splunk.tf @quarkiverse/quarkiverse-logging-splunk
terraform-scripts/quarkus-lucene.tf @quarkiverse/quarkiverse-lucene
terraform-scripts/quarkus-mailpit.tf @quarkiverse/quarkiverse-mailpit
terraform-scripts/quarkus-maven-resolver.tf @quarkiverse/quarkiverse-maven-resolver
terraform-scripts/quarkus-mfa.tf @quarkiverse/quarkiverse-mfa
terraform-scripts/quarkus-micrometer-registry.tf @quarkiverse/quarkiverse-micrometer-registry
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-mailpit.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_mailpit" {
name = "quarkus-mailpit"
description = "An email and SMTP testing tool with API for developers"
homepage_url = "https://github.com/axllent/mailpit"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension"]
}

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

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

0 comments on commit 6eccb52

Please sign in to comment.