Skip to content

Commit

Permalink
NO-ISSUE: Fix image names in CI and the script to bump versions (apac…
Browse files Browse the repository at this point in the history
…he#500)

* Fix image names in CI and the script to bump versions

* Fix typo

* Re-trigger CI
# Conflicts:
#	.ci/jenkins/dsl/jobs.groovy
  • Loading branch information
rgdoliveira committed Aug 26, 2024
1 parent 8bda9e4 commit dce4400
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions hack/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ newMajorMinorVersion=${new_version%.*}

echo "Set new version to ${new_version} (majorMinor = ${newMajorMinorVersion})"

sed -i "s|version: ${old_version}|version: ${new_version}|g" image.yaml
sed -i "s|version: ${old_version}|version: ${new_version}|g" images/manager.yaml

sed -i "s|^VERSION ?=.*|VERSION ?= ${new_version}|g" Makefile
sed -i "s|^REDUCED_VERSION ?=.*|REDUCED_VERSION ?= ${newMajorMinorVersion}|g" Makefile
Expand All @@ -44,13 +44,6 @@ sed -i "s|newTag:.*|newTag: ${new_version}|g" config/manager/kustomization.yaml
sed -i "s|IMAGE_TAG_BASE ?=.*|IMAGE_TAG_BASE ?= ${imageTag}|g" Makefile
sed -i "s|newName:.*|newName: ${imageTag}|g" config/manager/kustomization.yaml

# Update sonataflow-* images
find . -name "*.yaml" -exec sed -i "s|docker.io/apache/incubator-kie-sonataflow-builder.*:${oldMajorMinorVersion}|docker.io/apache/incubator-kie-sonataflow-builder:${newMajorMinorVersion}|" {} +
sed -i "s|docker.io/apache/incubator-kie-sonataflow-builder.*:${oldMajorMinorVersion}|docker.io/apache/incubator-kie-sonataflow-builder:${newMajorMinorVersion}|" Dockerfile

find . -name "*.yaml" -exec sed -i "s|docker.io/apache/incubator-kie-sonataflow-devmode.*:${oldMajorMinorVersion}|docker.io/apache/incubator-kie-sonataflow-devmode:${newMajorMinorVersion}|" {} +
sed -i "s|docker.io/apache/incubator-kie-sonataflow-devmode.*:${oldMajorMinorVersion}|docker.io/apache/incubator-kie-sonataflow-devmode:${newMajorMinorVersion}|" Dockerfile

sed -i -r "s|operatorVersion =.*|operatorVersion = \"${new_version}\"|g" version/version.go

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

0 comments on commit dce4400

Please sign in to comment.