-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.1 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
export SUDOSOS_BASE_TAG := sudosos/sudosos-devops/
export SUDOSOS_BACK_END := back-end
export SUDOSOS_FRONT_END := front-end
export SUDOSOS_NGINX_PROXY := nginx-proxy
export SUDOSOS_POINT_OF_SALE := point-of-sale
export REGISTRY := registry.gitlab.com
ifdef REGISTRY
BASE := $(REGISTRY)/
endif
build-back-end:
docker build ./sudosos-$(SUDOSOS_BACK_END) -t $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_BACK_END)
build-front-end:
docker build ./sudosos-$(SUDOSOS_FRONT_END) -t $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_FRONT_END)
build-nginx-proxy:
docker build ./sudosos-$(SUDOSOS_NGINX_PROXY) -t $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_NGINX_PROXY)
build-point-of-sale:
docker build ./sudosos-$(SUDOSOS_POINT_OF_SALE) -t $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_POINT_OF_SALE)
build-all:
make build-back-end
make build-front-end
make build-nginx-proxy
make build-point-of-sale
push-all:
docker push $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_BACK_END)
docker push $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_FRONT_END)
docker push $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_NGINX_PROXY)
docker push $(BASE)$(SUDOSOS_BASE_TAG)$(SUDOSOS_POINT_OF_SALE)