-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 928 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
46
47
48
49
50
ENV_FILE := .env
ifneq ("$(wildcard $(ENV_FILE))","")
include ${ENV_FILE}
export $(shell sed 's/=.*//' ${ENV_FILE})
endif
##################################
# DEV - run apps locally for development
.PHONY: dev-dashboard
dev-dashboard:
./dashboard/install/dev.sh
.PHONY: dev-leaderboard
dev-leaderboard:
./leaderboard/install/dev.sh
##################################
# BUILD - build images locally using s2i
.PHONY: build-dashboard
build-dashboard:
./dashboard/install/build.sh
.PHONY: build-leaderboard
build-leaderboard:
./leaderboard/install/build.sh
.PHONY: build
build: build-dashboard build-leaderboard
##################################
# PUSH - push images to repository
.PHONY: push-dashboard
push-dashboard:
./dashboard/install/push.sh
.PHONY: push-leaderboard
push-leaderboard:
./leaderboard/install/push.sh
.PHONY: push
push: push-dashboard push-leaderboard
##################################