Images: Rework. (1/3) (#13014)
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
f051ca3b3f
commit
c34e26ed1c
11 changed files with 119 additions and 260 deletions
10
Makefile
10
Makefile
|
|
@ -232,19 +232,21 @@ misspell: ## Check for spelling errors.
|
|||
run-ingress-controller: ## Run the ingress controller locally using a kubectl proxy connection.
|
||||
@build/run-ingress-controller.sh
|
||||
|
||||
.PHONY: ensure-buildx
|
||||
ensure-buildx:
|
||||
./hack/init-buildx.sh
|
||||
.PHONY: builder
|
||||
builder:
|
||||
docker buildx create --name $(BUILDER) --bootstrap --use || :
|
||||
docker buildx inspect $(BUILDER)
|
||||
|
||||
.PHONY: show-version
|
||||
show-version:
|
||||
echo -n $(TAG)
|
||||
|
||||
BUILDER ?= ingress-nginx
|
||||
PLATFORMS ?= amd64 arm arm64
|
||||
BUILDX_PLATFORMS ?= linux/amd64,linux/arm,linux/arm64
|
||||
|
||||
.PHONY: release # Build a multi-arch docker image
|
||||
release: ensure-buildx clean
|
||||
release: builder clean
|
||||
echo "Building binaries..."
|
||||
$(foreach PLATFORM,$(PLATFORMS), echo -n "$(PLATFORM)..."; ARCH=$(PLATFORM) make build;)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue