From 572ced4c8a2f71eb4ccff160a29fd70db1720c28 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Fri, 21 Feb 2020 13:30:48 +0000 Subject: [PATCH] update launch script --- ci/launch.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/launch.sh b/ci/launch.sh index 2100f6d008..5d50932718 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 + export 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"