-
Notifications
You must be signed in to change notification settings - Fork 13
/
quarkus-config-extensions.tf
45 lines (40 loc) · 1.55 KB
/
quarkus-config-extensions.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Create repository
resource "github_repository" "quarkus_config_extensions" {
name = "quarkus-config-extensions"
description = "Quarkus extensions to support Microprofile Config Sources"
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension"]
}
# Create team
resource "github_team" "quarkus_config_extensions" {
name = "quarkiverse-config-extensions"
description = "Quarkiverse team for the config-extensions extension"
create_default_maintainer = false
privacy = "closed"
parent_team_id = data.github_team.quarkiverse_members.id
}
# Add team to repository
resource "github_team_repository" "quarkus_config_extensions" {
team_id = github_team.quarkus_config_extensions.id
repository = github_repository.quarkus_config_extensions.name
permission = "maintain"
}
# Add users to the team
resource "github_team_membership" "quarkus_config_extensions" {
for_each = { for tm in ["radcortez"] : tm => tm }
team_id = github_team.quarkus_config_extensions.id
username = each.value
role = "maintainer"
}
# Create main branch
resource "github_branch" "quarkus_config_extensions" {
repository = github_repository.quarkus_config_extensions.name
branch = "main"
}
# Set default branch
resource "github_branch_default" "quarkus_config_extensions" {
repository = github_repository.quarkus_config_extensions.name
branch = github_branch.quarkus_config_extensions.branch
}