diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 9e26dfee..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/bin/update-proxy-versions.sh b/bin/update-runtime-versions.sh similarity index 73% rename from bin/update-proxy-versions.sh rename to bin/update-runtime-versions.sh index ed96478d..9bc3543e 100755 --- a/bin/update-proxy-versions.sh +++ b/bin/update-runtime-versions.sh @@ -7,26 +7,26 @@ # to facilitate the update of all the places where we usually depend on the latest version # provide the new Kalix Runtime version you want the project to be updated to -if [[ -z "$RUNTIME_VERSION" ]]; then +if [[ -z "${RUNTIME_VERSION}" ]]; then echo "Must provide RUNTIME_VERSION in environment" 1>&2 exit 1 fi cd .. -echo ">>> Updating docker image versions to $RUNTIME_VERSION" +echo ">>> Updating docker image versions to ${RUNTIME_VERSION}" PROJS=$(find . -type f -name "docker-compose.yml") for i in ${PROJS[@]} do echo "Updating Dockerfile for: $i" - sed -i.bak "s/gcr.io\/kalix-public\/kalix-runtime:\(.*\)/gcr.io\/kalix-public\/kalix-runtime:$RUNTIME_VERSION/" $i + sed -i.bak "s/gcr.io\/kalix-public\/kalix-runtime:\(.*\)/gcr.io\/kalix-public\/kalix-runtime:${RUNTIME_VERSION}/" $i rm $i.bak done echo ">>> Updating application.conf" -sed -i.bak "s/gcr.io\/kalix-public\/kalix-runtime:\(.*\)\"/gcr.io\/kalix-public\/kalix-runtime:$RUNTIME_VERSION\"/" ./codegen/js-gen-cli/src/it/resources/application.conf +sed -i.bak "s/gcr.io\/kalix-public\/kalix-runtime:\(.*\)\"/gcr.io\/kalix-public\/kalix-runtime:${RUNTIME_VERSION}\"/" ./codegen/js-gen-cli/src/it/resources/application.conf rm ./codegen/js-gen-cli/src/it/resources/application.conf.bak echo ">>> Updating config.json" -sed -i.bak "s/\"frameworkVersion\": \"\(.*\)\"/\"frameworkVersion\": \"$RUNTIME_VERSION\"/" ./sdk/config.json +sed -i.bak "s/\"frameworkVersion\": \"\(.*\)\"/\"frameworkVersion\": \"${RUNTIME_VERSION}\"/" ./sdk/config.json rm ./sdk/config.json.bak