-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (24 loc) · 870 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
## Build binary
bin:
go build --ldflags '-linkmode "external" -extldflags "-static"' -x -o core-networking .
## Build with version number for test purposes
build:
sudo docker build -t iofog/core-networking:$(TAG) .
## Push with version number for test purposes
push:build
sudo docker push iofog/core-networking:$(TAG)
## Tag latest to verified version number
latest:
sudo docker tag iofog/core-networking:$(TAG) iofog/core-networking
## Push latest
push-latest:latest
sudo docker push iofog/core-networking
## Same cmds for arm
build-arm:
sudo docker build -t iofog/core-networking-arm:$(TAG) -f Dockerfile-arm .
push-arm:build-arm
sudo docker push iofog/core-networking-arm:$(TAG)
latest-arm:
sudo docker tag iofog/core-networking-arm:$(TAG) iofog/core-networking-arm
push-latest-arm:latest-arm
sudo docker push iofog/core-networking-arm