forked from dailydotdev/daily-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
52 lines (49 loc) · 985 Bytes
/
Tiltfile
File metadata and controls
52 lines (49 loc) · 985 Bytes
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
48
49
50
51
52
load('ext://pulumi', 'pulumi_resource')
load('ext://uibutton', 'cmd_button', 'location')
update_settings(k8s_upsert_timeout_secs=300)
docker_build(
'api-image',
context='.',
dockerfile='./Dockerfile.dev',
ignore=[
'./node_modules',
'./.infra',
'__tests__',
'./seeds',
'./build',
],
live_update=[
sync('./src', '/opt/app/src'),
sync('./bin', '/opt/app/bin'),
run(
'pnpm install',
trigger=['./package.json', './pnpm-lock.yaml']
)
])
pulumi_resource(
'api',
stack='adhoc',
dir='.infra/',
deps=[
'.infra/index.ts',
'.infra/workers.ts',
'.infra/.env',
],
image_deps=['api-image'],
image_configs=['image'],
)
# Add a button to API to run pulumi up
cmd_button(
name='api_pulumi_up',
resource='api',
text='Run pulumi up',
icon_name='arrow_circle_up',
requires_confirmation=True,
dir='./.infra',
argv=[
'pulumi', 'up',
'--stack', 'adhoc',
'--yes',
'--skip-preview',
],
)