github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/integration/live_update_selector/Tiltfile (about)

     1  # -*- mode: Python -*-
     2  
     3  include('../Tiltfile')
     4  
     5  k8s_yaml('deployment.yaml')
     6  repo = local_git_repo('../../')
     7  docker_build('gcr.io/windmill-test-containers/integration/live-update-selector',
     8               '.',
     9               dockerfile='Dockerfile',
    10               live_update=[
    11                 sync('.', '/app'),
    12                 run('/app/compile.sh'),
    13                 run('/app/restart.sh'),
    14               ])
    15  
    16  # Make sure we can still track and live updates pods with selectors.
    17  k8s_resource("live-update-selector",
    18               port_forwards=["31234:8000"],
    19               extra_pod_selectors=[{'app': 'live-update-selector'}],
    20               discovery_strategy='selectors-only')