forked from nucleuscloud/neosync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
30 lines (27 loc) · 723 Bytes
/
Tiltfile
File metadata and controls
30 lines (27 loc) · 723 Bytes
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
allow_k8s_contexts('kind-neosync-dev')
backend = [
'neosync-api',
]
frontend = [
'neosync-app',
]
groups = {
'backend': backend,
'frontend': backend + frontend,
}
config.define_string_list("to-run", args=True)
cfg = config.parse()
resources = []
for arg in cfg.get('to-run', []):
if arg in groups:
resources += groups[arg]
else:
# also support specifying individual services instead of groups, e.g. `tilt up a b d`
resources.append(arg)
config.set_enabled_resources(resources)
load_dynamic('tilt/temporal/Tiltfile')
load_dynamic('tilt/redis/Tiltfile')
load_dynamic('tilt/metrics-server/Tiltfile')
load_dynamic('backend/Tiltfile')
load_dynamic('frontend/Tiltfile')
load_dynamic('worker/Tiltfile')