From 5a0e303f02dbbb347919cda499091828d7bd3ec7 Mon Sep 17 00:00:00 2001 From: AgusPk <53868386+AgusPk@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:40:31 -0300 Subject: [PATCH] added live_update to tiltfile (#226) --- examples/kubernetes-tilt-dev/Tiltfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/kubernetes-tilt-dev/Tiltfile b/examples/kubernetes-tilt-dev/Tiltfile index c26e5e5..b838b0f 100644 --- a/examples/kubernetes-tilt-dev/Tiltfile +++ b/examples/kubernetes-tilt-dev/Tiltfile @@ -2,10 +2,15 @@ version_settings(constraint='>=0.22.2') k8s_yaml(['k8s/namespace.yml']) +sync_node_src = sync('apps/node-nestjs-app/src', 'app/') + docker_build( 'k8s-tilt-dev-example-node-nestjs-app', 'apps/node-nestjs-app/', target='development', + live_update=[ + sync_node_src, + ], ) k8s_yaml(['apps/node-nestjs-app/k8s/deployment.yml', 'apps/node-nestjs-app/k8s/service.yml'])