Merge pull request #513 from thockin/v4-make-tools-on-demand

Only build test-tools when needed (v4)
This commit is contained in:
Kubernetes Prow Robot 2022-03-20 13:35:09 -07:00 committed by GitHub
commit 30c9bc692f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -192,9 +192,12 @@ test: $(BUILD_DIRS)
"
@./test_e2e.sh
test-tools:
@docker build -t $(REGISTRY)/test/test-sshd _test_tools/sshd
@docker build -t $(REGISTRY)/test/test-ncsvr _test_tools/ncsvr
TEST_TOOLS := $(shell ls _test_tools)
test-tools: $(foreach tool, $(TEST_TOOLS), .container.test_tool.$(tool))
.container.test_tool.%: _test_tools/% _test_tools/%/*
@docker build -t $(REGISTRY)/test/$$(basename $<) $<
@docker images -q $(REGISTRY)/test/$$(basename $<) > $@
# Help set up multi-arch build tools. This assumes you have the tools
# installed. If you already have a buildx builder available, you don't need