зеркало из https://github.com/docker/hub-tool.git
build: Add Arm 32 builds
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Родитель
5ddd6d567e
Коммит
b19d4557da
4
Makefile
4
Makefile
|
@ -55,6 +55,10 @@ package-cross: cross ## Package the cross compiled binaries in tarballs for *nix
|
|||
--platform linux/arm64 \
|
||||
--output type=tar,dest=- \
|
||||
--target package | gzip -9 > dist/$(BINARY_NAME)-linux-arm64.tar.gz
|
||||
docker build $(BUILD_ARGS) . \
|
||||
--platform linux/arm \
|
||||
--output type=tar,dest=- \
|
||||
--target package | gzip -9 > dist/$(BINARY_NAME)-linux-arm.tar.gz
|
||||
docker build $(BUILD_ARGS) . \
|
||||
--platform darwin/amd64 \
|
||||
--output type=tar,dest=- \
|
||||
|
|
|
@ -44,6 +44,7 @@ test-unit:
|
|||
cross:
|
||||
GOOS=linux GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_amd64 ./cmd/$(BINARY_NAME)
|
||||
GOOS=linux GOARCH=arm64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm64 ./cmd/$(BINARY_NAME)
|
||||
GOOS=linux GOARCH=arm $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm ./cmd/$(BINARY_NAME)
|
||||
GOOS=darwin GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_darwin_amd64 ./cmd/$(BINARY_NAME)
|
||||
GOOS=windows GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_windows_amd64.exe ./cmd/$(BINARY_NAME)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче