-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
90 lines (76 loc) · 1.84 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
provider "github" {
token = "${var.github_token}"
organization = "lalbuild"
}
# repositories
resource "github_repository" "dockerfiles" {
name = "dockerfiles"
has_issues = true
description = "Demo environments for lal"
}
resource "github_repository" "lal" {
name = "lal"
has_issues = true
has_downloads = true
has_wiki = true
description = "A strict, language-agnostic build system and dependency manager"
}
resource "github_repository" "lal-build_xyz" {
name = "lal-build.xyz"
description = "Documentation page"
homepage_url = "https://lal-build.xyz"
}
resource "github_repository" "terraform-plans" {
name = "terraform-plans"
description = "Infrastructure configs"
}
# branch protection
resource "github_branch_protection" "dockerfiles_master" {
repository = "dockerfiles"
branch = "master"
enforce_admins = "true"
}
resource "github_branch_protection" "lal_master" {
repository = "lal"
branch = "master"
enforce_admins = "true"
}
resource "github_branch_protection" "terraform-plans_master" {
repository = "terraform-plans"
branch = "master"
enforce_admins = "true"
}
# members
resource "github_membership" "membership_clux" {
username = "clux"
role = "admin"
}
resource "github_membership" "membership_bencord0" {
username = "bencord0"
role = "member"
}
resource "github_membership" "membership_johanbrandhorst" {
username = "johanbrandhorst"
role = "member"
}
resource "github_membership" "membership_gleaver" {
username = "gleaver"
role = "member"
}
# webhooks
#resource "github_repository_webhook" "lal-build_xyz-heroku" {
# repository = "lal-build.xyz"
#
# name = "web"
#
# configuration {
# url = "https://kolkrabbi.heroku.com/hooks/github"
# content_type = "json"
# insecure_ssl = false
# #secret = "" can't retrieve this..
# }
#
# active = true
#
# events = ["*"]
#}