Skip to content

Commit

Permalink
Address review comments - pass 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkp committed Aug 9, 2024
1 parent 7009f09 commit b53d7a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ imageTag='docker.io/apache/incubator-kie-sonataflow-operator'
old_version=$(getImageTagVersion)
old_operator_version=$(getOperatorVersion)
new_version=$1
quarkus_version=$2

if [ -z "${new_version}" ]; then
echo "Please inform the new version"
exit 1
fi

if [ -z "${quarkus_version}" ]; then
quarkus_version="3.13.0"
echo "Warning: The Quarkus version is not supplied, defaulting to version: $quarkus_version"
fi

oldMajorMinorVersion=${old_version%.*}
newMajorMinorVersion=${new_version%.*}

Expand All @@ -51,8 +57,9 @@ sed -i "s|containerImage:.*|containerImage: ${imageTag}:${newMajorMinorVersion}|

# Begin: Sonataflow DB Migrator tool
sed -i "s|OPERATOR_VERSION=${old_operator_version}|OPERATOR_VERSION=${new_version}|g" images/tools/sonataflow-db-migrator/build-container-image.sh
sed -i "s|<version>${old_operator_version}</version>|<version>${new_version}</version>|g" images/tools/sonataflow-db-migrator/pom.xml
sed -i "s|OPERATOR_VERSION=${old_operator_version}|OPERATOR_VERSION=${new_version}|g" images/tools/sonataflow-db-migrator/src/main/cekit/modules/kogito-postgres-db-migration-deps/migration.sh
sed -i "s|<version>${old_operator_version}</version>|<version>${new_version}</version>|g" images/tools/sonataflow-db-migrator/pom.xml
sed -i "s|<quarkus.platform.version>.*</quarkus.platform.version>|<quarkus.platform.version>${quarkus_version}</quarkus.platform.version>|g" images/tools/sonataflow-db-migrator/pom.xml
# End: Sonataflow DB Migrator tool

make generate-all
Expand Down

0 comments on commit b53d7a3

Please sign in to comment.