Skip to content

Commit

Permalink
expose --replace-version flag via REPLACE_OPERATOR_VERSION variable (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek authored Feb 5, 2025
1 parent fa50881 commit 4c37a09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make/manifests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ INDEX_IMAGE_TAG=latest
NEXT_VERSION=0.0.1
OTHER_REPO_PATH=""
BUNDLE_TAG=""
REPLACE_OPERATOR_VERSION=""

.PHONY: push-to-quay-staging
## Creates a new version of operator bundle, adds it into an index and pushes it to quay
Expand All @@ -19,7 +20,10 @@ generate-cd-release-manifests:
ifneq (${OTHER_REPO_PATH},"")
$(eval OTHER_REPO_PATH_PARAM = -orp ${OTHER_REPO_PATH})
endif
$(MAKE) run-cicd-script SCRIPT_PATH=scripts/cd/generate-cd-release-manifests.sh SCRIPT_PARAMS="-pr ../host-operator/ -er https://github.com/codeready-toolchain/registration-service -qn ${QUAY_NAMESPACE} -td ${TMP_DIR} -fr ${FIRST_RELEASE} -ch ${CHANNEL} -il ${IMAGE} ${OTHER_REPO_PATH_PARAM}"
ifneq (${REPLACE_OPERATOR_VERSION},"")
$(eval REPLACE_OPERATOR_VERSION_PARAM = -rv ${REPLACE_OPERATOR_VERSION})
endif
$(MAKE) run-cicd-script SCRIPT_PATH=scripts/cd/generate-cd-release-manifests.sh SCRIPT_PARAMS="-pr ../host-operator/ -er https://github.com/codeready-toolchain/registration-service -qn ${QUAY_NAMESPACE} -td ${TMP_DIR} -fr ${FIRST_RELEASE} -ch ${CHANNEL} -il ${IMAGE} ${OTHER_REPO_PATH_PARAM} ${REPLACE_OPERATOR_VERSION_PARAM}"

.PHONY: push-bundle-and-index-image
## Pushes generated manifests as a bundle image to quay and adds is to the image index
Expand Down

0 comments on commit 4c37a09

Please sign in to comment.