This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 932977200e0b6f16af6cdd274ee54202616a20d5 Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Mon May 3 09:59:08 2021 +0200 chore: Set container image version in CSV base template --- script/set_version.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/set_version.sh b/script/set_version.sh index 5b27650..d906948 100755 --- a/script/set_version.sh +++ b/script/set_version.sh @@ -38,6 +38,16 @@ do fi done +for f in $(find $location/../config/manifests/bases -type f -name "*.yaml"); +do + if [[ "$OSTYPE" == "linux-gnu"* ]]; then + sed -i -r "s/docker.io\/apache\/camel-k:([0-9]+[a-zA-Z0-9\-\.].*).*/${sanitized_image_name}:${version}/" $f + elif [[ "$OSTYPE" == "darwin"* ]]; then + # Mac OSX + sed -i '' -E "s/docker.io\/apache\/camel-k:([0-9]+[a-zA-Z0-9\-\.].*).*/${sanitized_image_name}:${version}/" $f + fi +done + # Update helm chart if [[ "$OSTYPE" == "linux-gnu"* ]]; then sed -i -r "s/docker.io\/apache\/camel-k:([0-9]+[a-zA-Z0-9\-\.].*).*/${sanitized_image_name}:${version}/" $location/../helm/camel-k/values.yaml