github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/integration/docker_prune/Tiltfile (about) 1 # -*- mode: Python -*- 2 3 include('../Tiltfile') 4 5 docker_build('gcr.io/tilt-dev/image-for-prune', '.', dockerfile_contents='FROM nginx\n') 6 7 k8s_yaml('pod.yaml') 8 9 # we want to set unrealistically aggressive prune settings (i.e. will prune 10 # EVERYTHING for this Tiltfile) for the purposes of testing 11 # however, since `tilt ci` will run prune, we only set the opts when explicitly 12 # running `tilt docker-prune` so we can control it for assert purposes 13 if config.tilt_subcommand == 'docker-prune': 14 docker_prune_settings(keep_recent=0, max_age_mins=-1, num_builds=9999)