@@ -6,27 +6,22 @@ cd "$(dirname "$0")/../"
66
77source " .shared-ci/scripts/pinned-tools.sh"
88
9- if [[ -n " ${BUILDKITE-} " ]]; then
10- # In buildkite, download the artifacts and reconstruct the build/assemblies folder.
11- buildkite-agent artifact download " build\assembly\**\*" .
12- else
13- # In TeamCity, just build.
14- ci/build-test.sh
15- fi
9+ buildkite-agent artifact download " build\assembly\**\*" .
1610
1711uploadAssembly " ${ASSEMBLY_PREFIX} " " ${PROJECT_NAME} "
1812
1913echo " Launching deployment"
2014
21- spatial cloud launch " ${ASSEMBLY_NAME} " cloud_launch.json " ${ASSEMBLY_NAME} " --snapshot=snapshots/default.snapshot | tee -a ./launch.log
22-
23- if [[ -n " ${BUILDKITE-} " ]]; then
24- CONSOLE_REGEX=' .*Console URL:(.*)\\n"'
25- LAUNCH_LOG=$( cat ./launch.log)
26- if [[ $LAUNCH_LOG =~ $CONSOLE_REGEX ]]; then
27- CONSOLE_URL=${BASH_REMATCH[1]}
28- buildkite-agent annotate --style " success" " Deployment URL: ${CONSOLE_URL} "
29- else
30- buildkite-agent annotate --style " warning" " Could not parse deployment URL from launch log."
31- fi
32- fi
15+ dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \
16+ create \
17+ --project_name " ${PROJECT_NAME} " \
18+ --assembly_name " ${ASSEMBLY_NAME} " \
19+ --deployment_name " ${ASSEMBLY_NAME} " \
20+ --launch_json_path cloud_launch.json \
21+ --snapshot_path snapshots/default.snapshot \
22+ --region EU \
23+ --tags " dev_login"
24+
25+ CONSOLE_URL=" https://console.improbable.io/projects/${PROJECT_NAME} /deployments/${ASSEMBLY_NAME} /overview"
26+
27+ buildkite-agent annotate --style " success" " Deployment URL: ${CONSOLE_URL} <br/>"
0 commit comments