Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 877 Bytes
# -*- mode: Python -*-
# Records the current time, then kicks off a server update.
# Normally, you would let Tilt do deploys automatically, but this
# shows you how to set up a custom workflow that measures it.
local_resource(
'deploy',
'./record-start-time.sh',
)
local_resource(
'example-go-compile',
'CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/tilt-example-go ./',
deps=['./main.go', './start.go'],
resource_deps=['deploy'])
docker_build(
'example-go-image',
'.',
dockerfile='deployments/Dockerfile',
only=[
'./build',
'./web',
],
live_update=[
sync('./build', '/app/build'),
sync('./web', '/app/web'),
],
entrypoint='find . | entr -r ./build/tilt-example-go')
k8s_yaml('deployments/kubernetes.yaml')
k8s_resource('example-go', port_forwards=8000,
resource_deps=['deploy', 'example-go-compile'])
You can’t perform that action at this time.