Archived
1
0

Add coder cloud agent binary to build process

This commit is contained in:
Anmol Sethi
2020-10-06 14:19:04 -04:00
parent 22c4a7e10f
commit 9035bfa871
4 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,12 @@ main() {
chmod +x out/node/entry.js
fi
if ! [ -f ./lib/coder-cloud-agent ]; then
OS="$(uname | tr '[:upper:]' '[:lower:]')"
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
chmod +x ./lib/coder-cloud-agent
fi
parcel build \
--public-url "." \
--out-dir dist \