-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTiltfile
52 lines (48 loc) · 1.07 KB
/
Tiltfile
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://min_k8s_version', 'min_k8s_version')
min_k8s_version('1.18.0')
trigger_mode(TRIGGER_MODE_MANUAL)
load('ext://namespace', 'namespace_create')
namespace_create('brigade-dashboard')
k8s_resource(
new_name = 'namespace',
objects = ['brigade-dashboard:namespace'],
labels = ['brigade-dashboard']
)
docker_build(
'brigadecore/brigade-dashboard', '.',
only = [
'public/',
'src/',
'.eslintrc.json',
'brigade-dashboard.nginx.conf',
'config-overrides.js',
'package.json',
'tsconfig.json',
'yarn.lock'
],
ignore = ['**/*_test.go']
)
k8s_resource(
workload = 'brigade-dashboard',
new_name = 'dashboard',
port_forwards = '31700:8080',
labels = ['brigade-dashboard']
)
k8s_resource(
workload = 'dashboard',
objects = [
'brigade-dashboard:configmap',
'brigade-dashboard:service'
]
)
k8s_yaml(
helm(
'./charts/brigade-dashboard',
name = 'brigade-dashboard',
namespace = 'brigade-dashboard',
set = [
'brigade.apiAddress=' + os.environ['REACT_APP_BRIGADE_API_ADDRESS'],
'tls.enabled=false'
]
)
)