-
Notifications
You must be signed in to change notification settings - Fork 2
/
quarkus-jef.tf
35 lines (32 loc) · 1.27 KB
/
quarkus-jef.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
# Create repository
resource "github_repository" "quarkus_jef" {
name = "quarkus-jef"
description = "Java Embedded Framework - provides access from java for hardware and one board computers like Raspberry Pi, Orange Pi, Banana Pi and etc. to control SPI / I2C / GPIO or Serial ports"
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
has_discussions = true
vulnerability_alerts = true
topics = ["1-wire", "i2c", "serial", "spi", "quarkus-extension"]
}
# Create team
resource "github_team" "quarkus_jef" {
name = "quarkiverse-jef"
description = "Quarkiverse team for the jef 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_jef" {
team_id = github_team.quarkus_jef.id
repository = github_repository.quarkus_jef.name
permission = "maintain"
}
# Add users to the team
resource "github_team_membership" "quarkus_jef" {
for_each = { for tm in ["alexeysharandin"] : tm => tm }
team_id = github_team.quarkus_jef.id
username = each.value
role = "maintainer"
}