Skip to content

Commit

Permalink
Makefile: fix make/release.mk file generation
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Nov 12, 2024
1 parent 5e68a3d commit f4d60b7
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -444,20 +444,24 @@ bundle-push: ## Push the bundle image.
$(MAKE) docker-push IMG=$(BUNDLE_IMG)

.PHONY: prepare-release
prepare-release: IMG_TAG=v$(VERSION)
prepare-release: ## Prepare the manifests for OLM and Helm Chart for a release.
echo -e "#Release default values\\n\
AUTHORINO_OPERATOR_VERSION=$(AUTHORINO_OPERATOR_VERSION)\\n\
LIMITADOR_OPERATOR_VERSION=$(LIMITADOR_OPERATOR_VERSION)\\n\
DNS_OPERATOR_VERSION=$(DNS_OPERATOR_VERSION)\\n\
WASM_SHIM_VERSION=$(WASM_SHIM_VERSION)\\n\
RELATED_IMAGE_CONSOLEPLUGIN=$(RELATED_IMAGE_CONSOLEPLUGIN)\\n\
IMG=$(IMAGE_TAG_BASE):$(IMG_TAG)\\n\
BUNDLE_IMG=$(IMAGE_TAG_BASE)-bundle:$(IMG_TAG)\\n\
CATALOG_IMG=$(IMAGE_TAG_BASE)-catalog:$(IMG_TAG)\\n\
CHANNELS=$(CHANNELS)\\n\
BUNDLE_CHANNELS=--channels=$(CHANNELS)\\n\
VERSION=$(VERSION)" > $(RELEASE_FILE)
AUTHORINO_OPERATOR_VERSION=$(AUTHORINO_OPERATOR_VERSION)\\n\
AUTHORINO_OPERATOR_BUNDLE_IMG=$(AUTHORINO_OPERATOR_BUNDLE_IMG)\\n\
LIMITADOR_OPERATOR_VERSION=$(LIMITADOR_OPERATOR_VERSION)\\n\
LIMITADOR_OPERATOR_BUNDLE_IMG=$(LIMITADOR_OPERATOR_BUNDLE_IMG)\\n\
DNS_OPERATOR_VERSION=$(DNS_OPERATOR_VERSION)\\n\
DNS_OPERATOR_BUNDLE_IMG=$(DNS_OPERATOR_BUNDLE_IMG)\\n\
WASM_SHIM_VERSION=$(WASM_SHIM_VERSION)\\n\
RELATED_IMAGE_WASMSHIM=$(RELATED_IMAGE_WASMSHIM)\\n\
RELATED_IMAGE_CONSOLEPLUGIN=$(RELATED_IMAGE_CONSOLEPLUGIN)\\n\
IMG=$(IMG)\\n\
BUNDLE_VERSION=$(BUNDLE_VERSION)\\n\
BUNDLE_IMG=$(BUNDLE_IMG)\\n\
CATALOG_IMG=$(CATALOG_IMG)\\n\
CHANNELS=$(CHANNELS)\\n\
BUNDLE_CHANNELS=--channels=$(CHANNELS)\\n\
VERSION=$(VERSION)" > $(RELEASE_FILE)
$(MAKE) bundle VERSION=$(VERSION) \
AUTHORINO_OPERATOR_VERSION=$(AUTHORINO_OPERATOR_VERSION) \
LIMITADOR_OPERATOR_VERSION=$(LIMITADOR_OPERATOR_VERSION) \
Expand Down

0 comments on commit f4d60b7

Please sign in to comment.