Merge pull request #161 from docker/install-hub-tool

Move main.go to root directory
This commit is contained in:
Silvin Lubecki 2021-01-13 17:58:10 +01:00 коммит произвёл GitHub
Родитель 42e4a43405 3528d280b9
Коммит 4b740d34be
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -23,6 +23,10 @@ perform Hub maintenance tasks.
[here](https://github.com/docker/hub-tool/releases) [here](https://github.com/docker/hub-tool/releases)
- Extract the package and place the `hub-tool` binary somewhere in your `PATH` - 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 Docker Hub
Login to the [Docker Hub](https://hub.docker.com) using your username and Login to the [Docker Hub](https://hub.docker.com) using your username and

Просмотреть файл

@ -57,18 +57,18 @@ test-unit:
.PHONY:cross .PHONY:cross
cross: cross:
GOOS=linux GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_amd64 ./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 ./cmd/$(BINARY_NAME) 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 ./cmd/$(BINARY_NAME) 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 ./cmd/$(BINARY_NAME) 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 ./cmd/$(BINARY_NAME) 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 # Note we're building statically for now to simplify releases. We can
# investigate dynamic builds later. # investigate dynamic builds later.
.PHONY: build .PHONY: build
build: build:
mkdir -p bin 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) cp bin/$(PLATFORM_BINARY) bin/$(BINARY)
.PHONY: package .PHONY: package

Просмотреть файл