-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
31 lines (26 loc) · 715 Bytes
/
Tiltfile
File metadata and controls
31 lines (26 loc) · 715 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
31
version_settings(constraint=">=0.35.0")
secret_settings(disable_scrub=True)
load('ext://dotenv', 'dotenv')
# Load tilt env file if it exists
dotenv_path = ".tilt.env"
if os.path.exists(dotenv_path):
dotenv(fn=dotenv_path)
# Configure trigger mode
true = ("true", "1", "yes", "t", "y")
trigger_mode = TRIGGER_MODE_MANUAL
if os.environ.get('TRIGGER_MODE_AUTO', '').lower() in true:
trigger_mode = TRIGGER_MODE_AUTO
# Docker images
custom_build(
ref="preprocessing-base-worker:dev",
command=["hack/build_docker.sh"],
deps=["."],
)
# Kubernetes manifests
k8s_yaml(kustomize("hack/kube"))
# Tilt resources
k8s_resource(
"preprocessing-worker",
labels=["Preprocessing"],
trigger_mode=trigger_mode,
)