-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
66 lines (53 loc) · 1.69 KB
/
Makefile
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: build
build:
dune build
.PHONY: build-beams
build-beams:
make -C test compile
.PHONY: promote
promote:
dune promote
.PHONY: test-only
test-only:
dune runtest test
.PHONY: test
test: build-beams test-only
.PHONY: install
install:
dune build @install
.PHONY: clean
clean:
make -C test clean
dune clean
.PHONY: docker-publish
docker-publish: docker-publish-ocaml docker-publish-erlang
# NOTE: Execute "docker login" before "make docker-publish"
.PHONY: docker-publish-ocaml
docker-publish-ocaml:
docker build -t yutopp/obeam-dev-ocaml:latest .circleci/images/ocaml
docker push yutopp/obeam-dev-ocaml:latest
.PHONY: docker-publish-erlang
docker-publish-erlang: docker-publish-erlang-otp18 \
docker-publish-erlang-otp19 \
docker-publish-erlang-otp20 \
docker-publish-erlang-otp21
.PHONY: docker-publish-erlang-otp18
docker-publish-erlang-otp18:
docker build -t yutopp/obeam-dev-erlang:otp-18 .circleci/images/erlang/ \
-f .circleci/images/erlang/Dockerfile.otp-18
docker push yutopp/obeam-dev-erlang:otp-18
.PHONY: docker-publish-erlang-otp19
docker-publish-erlang-otp19:
docker build -t yutopp/obeam-dev-erlang:otp-19 .circleci/images/erlang/ \
-f .circleci/images/erlang/Dockerfile.otp-19
docker push yutopp/obeam-dev-erlang:otp-19
.PHONY: docker-publish-erlang-otp20
docker-publish-erlang-otp20:
docker build -t yutopp/obeam-dev-erlang:otp-20 .circleci/images/erlang/ \
-f .circleci/images/erlang/Dockerfile.otp-20
docker push yutopp/obeam-dev-erlang:otp-20
.PHONY: docker-publish-erlang-otp21
docker-publish-erlang-otp21:
docker build -t yutopp/obeam-dev-erlang:otp-21 .circleci/images/erlang/ \
-f .circleci/images/erlang/Dockerfile.otp-21
docker push yutopp/obeam-dev-erlang:otp-21