-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
45 lines (36 loc) · 963 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
.DEFAULT_GOAL := build
linux:
@echo ">>> Make: Setting GO target OS to 'linux'"
GOOS=linux
export GOOS
darwin:
@echo ">>> Make: Setting GO target OS to 'darwin'"
GOOS=darwin
export GOOS
windows:
@echo ">>> Make: Setting GO target OS to 'windows'"
GOOS=windows
export GOOS
dep:
@echo ">>> Make: Updating dependencies"
dep ensure
build:
@echo ">>> Make: Building all modules"
$(MAKE) -C k8s-health
$(MAKE) -C init
$(MAKE) -C lock
docker-build:
@echo ">>> Make: Building all docker images"
$(MAKE) -C k8s-health docker-build
$(MAKE) -C init docker-build
$(MAKE) -C lock docker-build
docker-push:
@echo ">>> Make: Pushing all docker images"
$(MAKE) -C k8s-health docker-push
$(MAKE) -C init docker-push
$(MAKE) -C lock docker-push
docker-push-latest:
@echo ">>> Make: Pushing all docker images with latest tag"
$(MAKE) -C k8s-health docker-push-latest
$(MAKE) -C init docker-push-latest
$(MAKE) -C lock docker-push-latest