Skip to content

Commit fa461ff

Browse files
author
Akash Satheesan
authored
feat(ci/build): support arm64 for cloud-agent (#3294)
1 parent 1c0f0eb commit fa461ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/build/build-code-server.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ main() {
1919
fi
2020

2121
if ! [ -f ./lib/coder-cloud-agent ]; then
22+
echo "Downloading the cloud agent..."
23+
24+
# for arch; we do not use OS from lib.sh and get our own.
25+
# lib.sh normalizes macos to darwin - but cloud-agent's binaries do not
26+
source ./ci/lib.sh
2227
OS="$(uname | tr '[:upper:]' '[:lower:]')"
28+
2329
set +e
24-
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
30+
curl -fsSL "https://github.com/cdr/cloud-agent/releases/latest/download/cloud-agent-$OS-$ARCH" -o ./lib/coder-cloud-agent
2531
chmod +x ./lib/coder-cloud-agent
2632
set -e
2733
fi

0 commit comments

Comments
 (0)