forked from pathwar/pathwar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (52 loc) · 1.41 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
## moul/rules.mk
DOCKER_IMAGE = pathwar/pathwar
INSTALL_STEPS += recursive_install
GENERATE_STEPS += recursive_generate
TEST_STEPS += recursive_test
#BUMPDEPS_STEPS += recursive_bumpdeps
include rules.mk # see https://github.com/moul/rules.mk
##
.PHONY: recursive_install
recursive_install:
cd go; make install
.PHONY: recursive_test
recursive_test:
cd go; make test
cd web; make test
.PHONY: recursive_bumpdeps
recursive_bumpdeps:
cd go; make bumpdeps
.PHONY: clean
clean:
cd go; make clean
cd docs; make clean
.PHONY: recursive_generate
recursive_generate:
cd go; make generate
cd docs; make generate
.PHONY: integration
integration:
cd tool/integration; make run-suite
##
## docker.build
##
# rules.mk will already build the original Dockerfile
docker.build: agent.docker.build
api.docker.push: api.docker.build
api.docker.push:
docker push pathwar/pathwar
agent.docker.push: agent.docker.build
agent.docker.push:
docker push pathwar/agent
.PHONY: agent.docker.build
agent.docker.build:
$(call docker_build,Dockerfile.agent,pathwar/agent)
.PHONY: api.docker.build
api.docker.build:
$(call docker_build,Dockerfile,pathwar/pathwar)
.PHONY: agent.deploy
agent.deploy: agent.docker.push
ssh $(PATHWAR_AGENT_DEPLOY_HOST) 'cd $(PATHWAR_AGENT_DEPLOY_PATH) && make down pull up logs'
.PHONY: api.deploy
api.deploy: api.docker.push
ssh $(PATHWAR_API_DEPLOY_HOST) 'cd $(PATHWAR_API_DEPLOY_PATH) && make pull up-fast logs'