Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit e108330

Browse files
author
Jamie Brynes
authored
Fix deployment launch (#1039)
1 parent fcde683 commit e108330

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

ci/launch.sh

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@ cd "$(dirname "$0")/../"
66

77
source ".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

1711
uploadAssembly "${ASSEMBLY_PREFIX}" "${PROJECT_NAME}"
1812

1913
echo "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/>"

ci/shared-ci.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e056fe31826b64dbdf51b6974ba36d9908e32f9e
1+
c8c7828d0cbf17bed40b9e6ff6486d1917621d6e

0 commit comments

Comments
 (0)