forked from jippi/hashi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (38 loc) · 1010 Bytes
/
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
.PHONY: frontend
frontend:
@echo "=> building frontend ..."
$(MAKE) -j -C frontend build
.PHONY: backend
backend:
$(MAKE) -j -C backend build
$(MAKE) -j -C backend test
# Since backend will call the frontend/Makefile when need be, this target will
# just trigger a pure bakcend build
#
.PHONY: build
build: backend
.PHONY: rebuild
rebuild: clean
$(MAKE) -j build
.PHONY: install
install:
@echo "=> install ..."
$(MAKE) -j -C backend install
$(MAKE) -j -C frontend install
.PHONY: clean
clean:
@echo "=> cleaning ..."
$(MAKE) -j -C backend clean
$(MAKE) -j -C frontend clean
PHONY: dist-clean
dist-clean:
@echo "=> dist-cleaning ..."
$(MAKE) -j -C backend dist-clean
$(MAKE) -j -C frontend dist-clean
.PHONY: docker
docker:
@echo "=> build and push Docker image ..."
@docker login -e $(DOCKER_EMAIL) -u $(DOCKER_USER) -p $(DOCKER_PASS)
docker build -f Dockerfile -t jippi/hashi-ui:$(COMMIT) .
docker tag jippi/hashi-ui:$(COMMIT) jippi/hashi-ui:$(TAG)
docker push jippi/hashi-ui:$(TAG)