Skip to content

Commit

Permalink
fix(make): don't recreate cross-builder
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Jan 7, 2025
1 parent b173e6f commit 6060c4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ docker-build-push: docker-build-prepare ## Build and push a cross-arch Docker im
.PHONY: docker-build-prepare
docker-build-prepare: ## Prepare the Docker build environment.
docker run --privileged --rm tonistiigi/binfmt --install amd64,arm64
docker buildx create --use --driver docker-container --name cross-builder

@if ! docker buildx inspect cross-builder &> /dev/null; then \
docker buildx create --use --driver docker-container --name cross-builder; \
else \
docker buildx use cross-builder; \
fi
##@ Other

.PHONY: clean
Expand Down

0 comments on commit 6060c4f

Please sign in to comment.