Add coder cloud agent binary to build process
This commit is contained in:
parent
22c4a7e10f
commit
9035bfa871
@ -18,6 +18,12 @@ main() {
|
|||||||
chmod +x out/node/entry.js
|
chmod +x out/node/entry.js
|
||||||
fi
|
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 \
|
parcel build \
|
||||||
--public-url "." \
|
--public-url "." \
|
||||||
--out-dir dist \
|
--out-dir dist \
|
||||||
|
@ -25,6 +25,7 @@ main() {
|
|||||||
rsync README.md "$RELEASE_PATH"
|
rsync README.md "$RELEASE_PATH"
|
||||||
rsync LICENSE.txt "$RELEASE_PATH"
|
rsync LICENSE.txt "$RELEASE_PATH"
|
||||||
rsync ./lib/vscode/ThirdPartyNotices.txt "$RELEASE_PATH"
|
rsync ./lib/vscode/ThirdPartyNotices.txt "$RELEASE_PATH"
|
||||||
|
rsync ./lib/coder-cloud-agent "$RELEASE_PATH/lib"
|
||||||
|
|
||||||
# code-server exports types which can be imported and used by plugins. Those
|
# code-server exports types which can be imported and used by plugins. Those
|
||||||
# types import ipc.d.ts but it isn't included in the final vscode build so
|
# types import ipc.d.ts but it isn't included in the final vscode build so
|
||||||
|
@ -15,7 +15,8 @@ main() {
|
|||||||
dist \
|
dist \
|
||||||
.cache \
|
.cache \
|
||||||
node-* \
|
node-* \
|
||||||
.home
|
.home \
|
||||||
|
lib/coder-cloud-agent
|
||||||
|
|
||||||
pushd lib/vscode
|
pushd lib/vscode
|
||||||
git clean -xffd
|
git clean -xffd
|
||||||
|
@ -12,6 +12,7 @@ main() {
|
|||||||
-v "$PWD:/src" \
|
-v "$PWD:/src" \
|
||||||
-e HOME="/src/.home" \
|
-e HOME="/src/.home" \
|
||||||
-e USER="coder" \
|
-e USER="coder" \
|
||||||
|
-e GITHUB_TOKEN \
|
||||||
-w /src \
|
-w /src \
|
||||||
-p 127.0.0.1:8080:8080 \
|
-p 127.0.0.1:8080:8080 \
|
||||||
-u "$(id -u):$(id -g)" \
|
-u "$(id -u):$(id -g)" \
|
||||||
|
Loading…
Reference in New Issue
Block a user