Skip to content

Commit

Permalink
Merge pull request #622 from crossplane-contrib/backport-621-to-relea…
Browse files Browse the repository at this point in the history
…se-1.8

[Backport release-1.8] Add cleanupexamples tool to subpackages build process
  • Loading branch information
turkenf authored Sep 20, 2024
2 parents 6def0f1 + c0706a9 commit 3a30fa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster/images/provider-gcp/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 3a30fa6

Please sign in to comment.