-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTiltfile.dev
32 lines (32 loc) · 1.14 KB
/
Tiltfile.dev
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
custom_build(
ref = '169942020521.dkr.ecr.eu-west-2.amazonaws.com/local/penalty-payment-api',
#the following build-command was updated as specified by https://github.com/companieshouse/docker-chs-development/pull/581
command = 'DOCKER_BUILDKIT=0 docker build --build-arg SSH_PRIVATE_KEY="$(ssh_key_path="$(ssh -G github.com | grep -e \'^identityfile.*\' | head -n1 | sed \'s|^identityfile \\(.*\\)|\\1|\')"; if [ -z "${ssh_key_path}" ]; then echo "Could not find ssh key path for github.com">&2; false; elif [ -f "${ssh_key_path}" ]; then cat "${ssh_key_path}"; else echo "Could not find ssh key for github at ${ssh_key_path}" >&2; false; fi)" --build-arg SSH_PRIVATE_KEY_PASSPHRASE --tag $EXPECTED_REF .',
live_update = [
sync(
local_path = './assets',
remote_path = '/app/assets'
),
restart_container()
],
deps = [
'./assets',
'./config',
'./constants',
'./dao',
'./e5',
'./handlers',
'./interceptors',
'./middleware',
'./mocks',
'./models',
'./service',
'./spec',
'./transformers',
'./utils',
'./validators',
'./go.mod',
'./go.sum',
'./main.go'
]
)