/
main.tf
66 lines (56 loc) · 1.68 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
terraform {
cloud {
organization = "kireque"
hostname = "app.terraform.io"
workspaces {
name = "home-github-provisioner"
}
}
required_providers {
github = {
source = "integrations/github"
version = "6.2.1"
}
}
}
module "onepassword_item_github" {
source = "github.com/bjw-s/terraform-1password-item?ref=main"
vault = "Services"
item = "Github"
}
module "onepassword_item_github_kireque_bot" {
source = "github.com/bjw-s/terraform-1password-item?ref=main"
vault = "Automation"
item = "github-kireque-bot"
}
module "onepassword_item_flux" {
source = "github.com/bjw-s/terraform-1password-item?ref=main"
vault = "Automation"
item = "flux"
}
module "onepassword_item_discord" {
source = "github.com/bjw-s/terraform-1password-item?ref=main"
vault = "Services"
item = "Discord"
}
module "kireque" {
source = "./kireque"
defaults = {
auto_init = true
allow_merge_commit = false
allow_squash_merge = true
allow_auto_merge = true
delete_branch_on_merge = true
squash_merge_commit_message = "BLANK"
has_issues = true
has_wiki = false
has_projects = false
}
secrets = {
kireque_bot_app_id = module.onepassword_item_github_kireque_bot.fields.github_app_id
kireque_bot_private_key = module.onepassword_item_github_kireque_bot.fields.github_app_private_key
flux_github_webhook_url = module.onepassword_item_flux.fields.github_webhook_url
flux_github_webhook_secret = module.onepassword_item_flux.fields.github_webhook_token
discord_ci_webhook_url = module.onepassword_item_discord.fields.webhook_kireque_github_ci
}
}