-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
32 lines (27 loc) · 966 Bytes
/
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
## SOURSD API Tiltfile
##
## Loki Sinclair <[email protected]>
##
# Load in any locally set config
cfg = read_json("tiltconf.json")
include(cfg.get("soursdWebRoot") + "/Tiltfile")
include(cfg.get("clamAVRoot") + "/Tiltfile")
include(cfg.get("soursdOcrRoot") + "/Tiltfile")
local_resource("linting", cmd="composer run lint", deps=["./"])
docker_build(
ref="hdruk/" + cfg.get("name"),
context=".",
build_args={},
live_update=[
sync(".", "/var/www"),
run("php artisan config:clear", trigger="./.env"),
run("composer install", trigger="./composer.lock"),
run("php artisan route:clear"),
run("php artisan cache:clear"),
run("php artisan l5-swagger:generate"),
run("php artisan octane:reload"),
],
)
k8s_yaml("chart/" + cfg.get("name") + "/deployment.yaml")
k8s_yaml("chart/" + cfg.get("name") + "/service.yaml")
k8s_resource(cfg.get("name"), port_forwards=8100, labels=["Service"])