Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Forked from chuckha/Tiltfile
Created July 26, 2019 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzdan/b891ff7e63a65c1a94ed2459e3b0881e to your computer and use it in GitHub Desktop.
Save jazzdan/b891ff7e63a65c1a94ed2459e3b0881e to your computer and use it in GitHub Desktop.
tilt file for github.com/kubernetes-sigs/cluster-api-provider-docker
project = str(local('gcloud config get-value project')).strip()
read_file(str(local('which capdctl')).rstrip('\n'))
k8s_yaml(local('capdctl platform -capi-image gcr.io/kubernetes1-226021/cluster-api-controller-amd64:dev -bp-image gcr.io/kubernetes1-226021/cluster-api-bootstrap-provider-kubeadm:dev -bp-ref master'))
custom_build(
'gcr.io/' + project +'/manager',
'GOOS=linux go build ./cmd/manager && docker build -t $EXPECTED_REF .',
['.'],
ignore='manager',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment