@@ -42,9 +42,9 @@ ifdef BUILD_TAGS
42
42
LINT_TAGS =--build-tags $(BUILD_TAGS )
43
43
endif
44
44
45
- TAR_TRANSFORM: =--transform s/packaging/docker/ --transform s/bin/docker/ --transform s/docker-linux-amd64/docker/ --transform s/docker-darwin-amd64/docker/ --transform s/docker-linux-arm64/docker/ --transform s/docker-darwin-arm64/docker/
45
+ TAR_TRANSFORM: =--transform s/packaging/docker/ --transform s/bin/docker/ --transform s/docker-linux-amd64/docker/ --transform s/docker-darwin-amd64/docker/ --transform s/docker-linux-arm64/docker/ --transform s/docker-linux-armv6/docker/ --transform s/docker-linux-armv7/docker/ --transform s/docker- darwin-arm64/docker/
46
46
ifneq ($(findstring bsd,$(shell tar --version) ) ,)
47
- TAR_TRANSFORM =-s /packaging/docker/ -s /bin/docker/ -s /docker-linux-amd64/docker/ -s /docker-darwin-amd64/docker/ -s /docker-linux-arm64/docker/ -s /docker-darwin-arm64/docker/
47
+ TAR_TRANSFORM =-s /packaging/docker/ -s /bin/docker/ -s /docker-linux-amd64/docker/ -s /docker-darwin-amd64/docker/ -s /docker-linux-arm64/docker/ -s /docker-linux-armv6/docker/ -s /docker-linux-armv7/docker/ -s /docker- darwin-arm64/docker/
48
48
endif
49
49
50
50
all : cli
61
61
cross :
62
62
GOOS=linux GOARCH=amd64 $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -linux-amd64 ./cli
63
63
GOOS=linux GOARCH=arm64 $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -linux-arm64 ./cli
64
+ GOOS=linux GOARM=6 GOARCH=arm $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -linux-armv6 ./cli
65
+ GOOS=linux GOARM=7 GOARCH=arm $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -linux-armv7 ./cli
64
66
GOOS=darwin GOARCH=amd64 $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -darwin-amd64 ./cli
65
67
GOOS=darwin GOARCH=arm64 $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -darwin-arm64 ./cli
66
68
GOOS=windows GOARCH=amd64 $(GO_BUILD ) $(TAGS ) -o $(BINARY ) -windows-amd64.exe ./cli
@@ -90,6 +92,8 @@ package: cross
90
92
mkdir -p dist
91
93
tar -czf dist/docker-linux-amd64.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -linux-amd64
92
94
tar -czf dist/docker-linux-arm64.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -linux-arm64
95
+ tar -czf dist/docker-linux-armv6.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -linux-armv6
96
+ tar -czf dist/docker-linux-armv7.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -linux-armv7
93
97
tar -czf dist/docker-darwin-amd64.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -darwin-amd64
94
98
tar -czf dist/docker-darwin-arm64.tar.gz $(TAR_TRANSFORM ) packaging/LICENSE $(BINARY ) -darwin-arm64
95
99
cp $(BINARY ) -windows-amd64.exe $(WORK_DIR ) /docker.exe
0 commit comments