-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTiltfile
More file actions
47 lines (39 loc) · 1.02 KB
/
Tiltfile
File metadata and controls
47 lines (39 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
load('ext://uibutton', 'cmd_button', 'location', 'text_input')
local_resource(
'base',
cmd='make base',
deps=['Makefile', './.git/modules/base/HEAD']
)
local_resource(
name='gendocs',
cmd='make gendocs',
deps=['Makefile', 'go.mod', 'go.sum', './cmd/gendocs', './config', './openapi-spec'])
docker_build(
'api-site-base',
'.',
dockerfile='deploy/base.dockerfile',
only=['./base/src/Gemfile', './base/src/Gemfile.lock'])
docker_build(
'api-site',
'.',
live_update=[
sync('config', '/config'),
sync('docs', '/docs'),
],
dockerfile='deploy/Dockerfile')
k8s_yaml('deploy/serve.yaml')
k8s_resource(
'api-site',
port_forwards=['4004:4000'],
resource_deps=['base'],
)
cmd_button(name='update-base',
resource='base',
argv=['make', 'update-base'],
text='Git pull latest',
icon_name='merge')
cmd_button(name='dump-api',
resource='gendocs',
argv=['make', 'dump-api'],
text='Dump API specs',
icon_name='cloud_download')