-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
27 lines (22 loc) · 894 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
IMAGE_NAME=core-network
DEFAULT_REG=databoxsystems
VERSION=latest
.PHONY: all
all: build-amd64 build-arm64v8 publish-images
.PHONY: build-amd64
build-amd64:
docker build -t $(DEFAULT_REG)/$(IMAGE_NAME)-amd64:$(VERSION) . $(OPTS)
docker build -t $(DEFAULT_REG)/$(IMAGE_NAME)-relay-amd64:$(VERSION) -f Dockerfile-relay . $(OPTS)
.PHONY: build-arm64v8
build-arm64v8:
docker build -t $(DEFAULT_REG)/$(IMAGE_NAME)-arm64v8:$(VERSION) -f Dockerfile-arm64v8 . $(OPTS)
docker build -t $(DEFAULT_REG)/$(IMAGE_NAME)-relay-arm64v8:$(VERSION) -f Dockerfile-relay . $(OPTS)
.PHONY: publish-images
publish-images:
docker push $(DEFAULT_REG)/$(IMAGE_NAME)-amd64:$(VERSION)
docker push $(DEFAULT_REG)/$(IMAGE_NAME)relay-amd64:$(VERSION)
docker push $(DEFAULT_REG)/$(IMAGE_NAME)-arm64v8:$(VERSION)
docker push $(DEFAULT_REG)/$(IMAGE_NAME)relay-arm64v8:$(VERSION)
.PHONY: test
test:
#NOT IMPLIMENTED