Skip to content

Commit

Permalink
Merge pull request #1495 from turkenf/add-cleanupexamples
Browse files Browse the repository at this point in the history
Add cleanupexamples tool to subpackages build process
  • Loading branch information
turkenf authored Sep 20, 2024
2 parents 4a84e6b + da19451 commit c252597
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster/images/provider-aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ ifeq (-,$(findstring -,$(VERSION)))
endif
BUILD_ONLY ?= false
STORE_PACKAGES ?= ""
XPKG_CLEANUP_EXAMPLES_VERSION ?= v0.12.1
batch-process: $(UP)
@rm -rf $(WORK_DIR)/xpkg-cleaned-examples
@GOOS=$(HOSTOS) GOARCH=$(TARGETARCH) go run github.com/upbound/uptest/cmd/cleanupexamples@$(XPKG_CLEANUP_EXAMPLES_VERSION) $(ROOT_DIR)/examples $(WORK_DIR)/xpkg-cleaned-examples || $(FAIL)
@$(INFO) Batch processing smaller provider packages for: "$(SUBPACKAGES)"
@mkdir -p "$(XPKG_OUTPUT_DIR)/$(PLATFORM)" && \
$(UP) xpkg batch --smaller-providers "$$(tr ' ' ',' <<< "$(SUBPACKAGES)")" \
Expand All @@ -69,7 +72,7 @@ batch-process: $(UP)
--output-dir $(XPKG_OUTPUT_DIR) \
--store-packages "$(STORE_PACKAGES)" \
--build-only=$(BUILD_ONLY) \
--examples-root $(ROOT_DIR)/examples \
--examples-root $(WORK_DIR)/xpkg-cleaned-examples \
--examples-group-override monolith=* --examples-group-override config=providerconfig \
--auth-ext $(XPKG_DIR)/auth.yaml \
--crd-root $(XPKG_DIR)/crds \
Expand All @@ -80,3 +83,4 @@ batch-process: $(UP)
--concurrency $(CONCURRENCY) \
--push-retry 10 || $(FAIL)
@$(OK) Done processing smaller provider packages for: "$(SUBPACKAGES)"
@rm -rf $(WORK_DIR)/xpkg-cleaned-examples

0 comments on commit c252597

Please sign in to comment.