Skip to content

Commit

Permalink
Address review comments - pass 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkp committed Aug 9, 2024
1 parent d4f6272 commit 7009f09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions hack/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ source "${script_dir_path}"/env.sh
imageTag='docker.io/apache/incubator-kie-sonataflow-operator'
# shellcheck disable=SC2034
old_version=$(getImageTagVersion)
old_operator_version=$(getOperatorVersion)
new_version=$1

if [ -z "${new_version}" ]; then
Expand All @@ -48,6 +49,12 @@ sed -i -r "s|operatorVersion =.*|operatorVersion = \"${new_version}\"|g" version

sed -i "s|containerImage:.*|containerImage: ${imageTag}:${newMajorMinorVersion}|g" $(getCsvFile)

# 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
# End: Sonataflow DB Migrator tool

make generate-all
make vet

Expand Down
2 changes: 1 addition & 1 deletion images/tools/sonataflow-db-migrator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.redhat.sonataflow.flyway</groupId>
<groupId>com.redhat.sonataflow.db.postgres</groupId>
<artifactId>sonataflow-db-migrator</artifactId>
<version>999.0.0</version>

Expand Down

0 comments on commit 7009f09

Please sign in to comment.