forked from ocurrent/ocaml-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (12 loc) · 627 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CONTEXT := ocaml.ci.dev
all:
dune build ./service/main.exe ./client/main.exe ./web-ui/main.exe ./service/local.exe @runtest
deploy-backend:
env DOCKER_BUILDKIT=1 docker --context $(CONTEXT) build -t ocaml-ci-service .
deploy-web:
env DOCKER_BUILDKIT=1 docker --context $(CONTEXT) build -f Dockerfile.web -t ocaml-ci-web .
orgs := $(shell cat deploy-data/github-organisations.txt | tr '\n' ',')
stack.yml: stack.yml.in deploy-data/github-organisations.txt
sed 's/GITHUB_ORGANISATIONS/${orgs:,=}/' stack.yml.in > stack.yml
deploy-stack: stack.yml
docker --context $(CONTEXT) stack deploy --prune -c stack.yml ocaml-ci