mirror of https://github.com/docker/buildx.git
57 lines
1.1 KiB
Makefile
57 lines
1.1 KiB
Makefile
ifneq (, $(BUILDX_BIN))
|
|
export BUILDX_CMD = $(BUILDX_BIN)
|
|
else ifneq (, $(shell docker buildx version))
|
|
export BUILDX_CMD = docker buildx
|
|
else ifneq (, $(shell which buildx))
|
|
export BUILDX_CMD = $(which buildx)
|
|
else
|
|
$(error "Buildx is required: https://github.com/docker/buildx#installing")
|
|
endif
|
|
|
|
export BIN_OUT = ./bin
|
|
export RELEASE_OUT = ./release-out
|
|
|
|
shell:
|
|
./hack/shell
|
|
|
|
binaries:
|
|
$(BUILDX_CMD) bake binaries
|
|
|
|
binaries-cross:
|
|
$(BUILDX_CMD) bake binaries-cross
|
|
|
|
install: binaries
|
|
mkdir -p ~/.docker/cli-plugins
|
|
install bin/buildx ~/.docker/cli-plugins/docker-buildx
|
|
|
|
release:
|
|
./hack/release
|
|
|
|
validate-all: lint test validate-vendor validate-docs
|
|
|
|
lint:
|
|
$(BUILDX_CMD) bake lint
|
|
|
|
test:
|
|
$(BUILDX_CMD) bake test
|
|
|
|
validate-vendor:
|
|
$(BUILDX_CMD) bake validate-vendor
|
|
|
|
validate-docs:
|
|
$(BUILDX_CMD) bake validate-docs
|
|
|
|
validate-authors:
|
|
$(BUILDX_CMD) bake validate-authors
|
|
|
|
vendor:
|
|
./hack/update-vendor
|
|
|
|
docs:
|
|
./hack/update-docs
|
|
|
|
authors:
|
|
$(BUILDX_CMD) bake update-authors
|
|
|
|
.PHONY: shell binaries binaries-cross install release validate-all lint validate-vendor validate-docs validate-authors vendor docs authors
|