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

     1  # -*- mode: Python -*-
     2  
     3  include('../Tiltfile')
     4  
     5  # If you get push errors, you can change the default_registry.
     6  # Create tilt_option.json with contents: {"default_registry": "gcr.io/my-personal-project"}
     7  # (with your registry inserted). tilt_option.json is gitignore'd, unlike Tiltfile
     8  default_registry(read_json('tilt_option.json', {})
     9                   .get('default_registry', 'gcr.io/windmill-test-containers/servantes'))
    10  
    11  docker_build('sparkle', './sparkle', dockerfile='Dockerfile.sparkle',
    12               live_update=[
    13                   sync('./sparkle/', '/app/'),
    14               ])
    15  docker_build('tada', './tada', dockerfile='Dockerfile.tada',
    16               live_update=[
    17                   sync('./tada/', '/app/'),
    18               ])
    19  k8s_yaml('two_images.yaml')
    20  
    21  k8s_resource('twoimages', port_forwards=['8100:8000', '8101:8001'])