forked from Twingate-Labs/tg-group-profile-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.json
56 lines (56 loc) · 1.7 KB
/
app.json
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
{
"name": "tg-group-profile-manager",
"env": {
"SLACK_SIGNING_SECRET": {
"description": "Slack Signing Secret",
"required": true,
"order": 10
},
"SLACK_BOT_TOKEN": {
"description": "Slack Bot Token",
"required": true,
"order": 20
},
"TG_API_KEY": {
"description": "Twingate API key (Read/Write token)",
"required": true,
"order": 30
},
"TG_ACCOUNT": {
"description": "Twingate account URL, for example xxx.twingate.com",
"required": true,
"order": 40
},
"PROFILE_CONFIG": {
"description": "Profile configuration (must be valid single line JSON)",
"required": true,
"order": 50
},
"PROJECT_ID": {
"description": "GCP Project Id (used to reference the secrets via the app)",
"required": true,
"order": 60
}
},
"options": {
"allow-unauthenticated": true,
"memory": "512Mi",
"cpu": "1",
"http2": false
},
"build": {
"skip": false
},
"hooks": {
"prebuild": {
"commands": [
"./cloudrun_prebuild.sh"
]
},
"postcreate": {
"commands": [
"gcloud run services update tg-group-profile-manager --no-cpu-throttling --project \"$GOOGLE_CLOUD_PROJECT\"",
"gcloud run services update tg-group-profile-manager --project \"$GOOGLE_CLOUD_PROJECT\" --remove-env-vars SLACK_BOT_TOKEN,TG_API_KEY,TG_ACCOUNT,PROFILE_CONFIG,SLACK_SIGNING_SECRET" ]
}
}
}