-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
32 lines (26 loc) · 890 Bytes
/
Tiltfile
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
# -*- mode: Python -*-
trigger_mode(TRIGGER_MODE_MANUAL)
load("./bin/_tilt", "images", "linkerd_yaml", "settings")
if settings.get("default_registry"):
default_registry(settings.get("default_registry"))
if settings.get("allow_k8s_context"):
allow_k8s_contexts(settings.get("allow_k8s_contexts"))
k8s_yaml(linkerd_yaml())
for image in images:
if "live_update" in image:
sync_from = image["live_update"]["sync"]["from"]
sync_to = image["live_update"]["sync"]["to"]
custom_build(
image["image"],
"ACTUAL_REF=$(./bin/docker-build-%s) && docker tag $ACTUAL_REF $EXPECTED_REF" % image["name"],
image["deps"],
live_update=[
sync(sync_from, sync_to),
],
)
else:
custom_build(
image["image"],
"ACTUAL_REF=$(./bin/docker-build-%s) && docker tag $ACTUAL_REF $EXPECTED_REF" % image["name"],
image["deps"],
)