diff --git a/ci/launch.sh b/ci/launch.sh index 2100f6d008..ab3a33584b 100644 --- a/ci/launch.sh +++ b/ci/launch.sh @@ -18,6 +18,12 @@ uploadAssembly "${ASSEMBLY_PREFIX}" "${PROJECT_NAME}" echo "--- Launching deployment :airplane_departure:" +# If the RUNTIME_VERSION env variable is already set, i.e. - through the Buildkite menu +# then skip reading the file. +if [[ -z $"{RUNTIME_VERSION:-}" ]]; then + RUNTIME_VERSION="$(cat workers/unity/Packages/io.improbable.gdk.tools/runtime.pinned)" +fi + dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \ create \ --project_name "${PROJECT_NAME}" \ @@ -26,7 +32,8 @@ dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.Deplo --launch_json_path cloud_launch.json \ --snapshot_path snapshots/default.snapshot \ --region EU \ - --tags "dev_login" + --tags "dev_login" \ + --runtime_version "${RUNTIME_VERSION}" CONSOLE_URL="https://console.improbable.io/projects/${PROJECT_NAME}/deployments/${ASSEMBLY_NAME}/overview"