Skip to content

Commit 9f2c394

Browse files
committed
release: Update containerImage manifest in all type of releases
[noissue] Signed-off-by: Balasankar 'Balu' C <[email protected]>
1 parent 870d7f2 commit 9f2c394

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

release/release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function bump_version {
3232
echo "Updating the manifests with the changes ..."
3333
make generate manifests bundle
3434

35+
echo "Updating containerImage annotation"
36+
CSV_FILE=manifests/pulp-operator.clusterserviceversion.yaml
37+
sed -i "s#containerImage: quay.io/pulp/pulp-operator:devel#containerImage: quay.io/pulp/pulp-operator:v${PULP_OPERATOR_RELEASE_VERSION}#g" $CSV_FILE
38+
3539
echo "Commiting changes ..."
3640
git commit -am "Bump version from Makefile to $PULP_OPERATOR_DEV_VERSION" -m "[noissue]"
3741
}
@@ -63,7 +67,6 @@ function operatorhub {
6367

6468
cp -a ${PULP_OPERATOR_SOURCE_PATH}/bundle/* ${CATALOG_DIR}/
6569
CSV_FILE=${CATALOG_DIR}/manifests/pulp-operator.clusterserviceversion.yaml
66-
sed -i "s#containerImage: quay.io/pulp/pulp-operator:devel#containerImage: quay.io/pulp/pulp-operator:v${PULP_OPERATOR_RELEASE_VERSION}#g" $CSV_FILE
6770
echo " replaces: pulp-operator.v${PULP_OPERATOR_REPLACE_VERSION}" >> $CSV_FILE
6871

6972
echo "Commiting changes ..."
@@ -83,4 +86,4 @@ bump_version
8386
operatorhub
8487
redhat_catalog
8588

86-
echo -e "[\e[32mOK\e[0m] All tasks finished!"
89+
echo -e "[\e[32mOK\e[0m] All tasks finished!"

0 commit comments

Comments
 (0)