-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquarkus-jberet.tf
42 lines (38 loc) · 1.39 KB
/
quarkus-jberet.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
# Create repository
resource "github_repository" "quarkus_jberet" {
name = "quarkus-jberet"
description = "Quarkus Extension for Batch Applications."
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["java", "batch", "jsr-352", "quarkus-extension", "jberet"]
}
# Create team
resource "github_team" "quarkus_jberet" {
name = "quarkiverse-jberet"
description = "Quarkiverse team for the jberet 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_jberet" {
team_id = github_team.quarkus_jberet.id
repository = github_repository.quarkus_jberet.name
permission = "maintain"
}
# Add users to the team
resource "github_team_membership" "quarkus_jberet" {
for_each = { for tm in ["radcortez"] : tm => tm }
team_id = github_team.quarkus_jberet.id
username = each.value
role = "maintainer"
}
# Add outside collaborators to the repository
resource "github_repository_collaborator" "quarkus_jberet" {
for_each = { for tm in ["aureamunoz"] : tm => tm }
repository = github_repository.quarkus_jberet.name
username = each.value
permission = "push"
}