зеркало из https://github.com/docker/hub-tool.git
Merge pull request #161 from docker/install-hub-tool
Move main.go to root directory
This commit is contained in:
Коммит
4b740d34be
|
@ -23,6 +23,10 @@ perform Hub maintenance tasks.
|
|||
[here](https://github.com/docker/hub-tool/releases)
|
||||
- Extract the package and place the `hub-tool` binary somewhere in your `PATH`
|
||||
|
||||
OR
|
||||
|
||||
- Install from sources: `go install github.com/docker/hub-tool`
|
||||
|
||||
### Login to Docker Hub
|
||||
|
||||
Login to the [Docker Hub](https://hub.docker.com) using your username and
|
||||
|
|
|
@ -57,18 +57,18 @@ test-unit:
|
|||
|
||||
.PHONY:cross
|
||||
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)
|
||||
GOOS=linux GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_amd64 .
|
||||
GOOS=linux GOARCH=arm64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm64 .
|
||||
GOOS=linux GOARCH=arm $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm .
|
||||
GOOS=darwin GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_darwin_amd64 .
|
||||
GOOS=windows GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_windows_amd64.exe .
|
||||
|
||||
# Note we're building statically for now to simplify releases. We can
|
||||
# investigate dynamic builds later.
|
||||
.PHONY: build
|
||||
build:
|
||||
mkdir -p bin
|
||||
$(STATIC_FLAGS) $(GO_BUILD) -o bin/$(PLATFORM_BINARY) ./cmd/$(BINARY_NAME)
|
||||
$(STATIC_FLAGS) $(GO_BUILD) -o bin/$(PLATFORM_BINARY) .
|
||||
cp bin/$(PLATFORM_BINARY) bin/$(BINARY)
|
||||
|
||||
.PHONY: package
|
||||
|
|
Загрузка…
Ссылка в новой задаче