-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathterraform.jsonnet
72 lines (72 loc) · 1.99 KB
/
terraform.jsonnet
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
function(libs, pages=false) {
'tf/main.tf.json':
std.manifestJsonEx(
{
'//': 'Generated by `make configure`, please do not edit manually.',
terraform: {
required_providers: {
github: {
source: 'integrations/github',
version: '~>4.20.0',
},
},
backend: {
remote: {
organization: 'jsonnet-libs',
workspaces: {
name: 'jsonnet-libs',
},
},
},
},
provider: {
github: { owner: 'jsonnet-libs' },
},
}
+ std.foldl(
function(acc, lib)
acc {
resource+:
[{
github_repository: {
[lib.name]: {
name: lib.name + lib.suffix,
description: lib.description,
homepage_url: lib.site_url,
topics: ['jsonnet', 'jsonnet-lib'],
auto_init: true,
has_downloads: false,
has_issues: false,
has_projects: false,
has_wiki: false,
allow_merge_commit: false,
allow_rebase_merge: false,
lifecycle: {
ignore_changes: ['pages'],
},
} + (
if pages
then {
lifecycle: {
ignore_changes: [],
},
pages:
{
source:
{
branch: 'gh-pages',
path: '/',
},
},
}
else {}
),
},
}],
},
libs,
{}
)
, ' '
),
}