From 02176fa92b36fbcb759118340d714977afc7dc7c Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Thu, 29 Feb 2024 17:06:10 +0000 Subject: [PATCH] feat: build CLI from sources Signed-off-by: vitaliy-guliy --- devfile.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index b77a0557bda..1eaa90b9379 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -97,3 +97,25 @@ commands: podman build -f build/dockerfiles/assembly.libc.Dockerfile -t che-code . group: kind: run + + - id: build-cli + exec: + label: Build VS Code CLI from sources + component: dev + workingDir: ${PROJECTS_ROOT}/che-code/code/cli + commandLine: | + cargo build --release && \ + cp /projects/che-code/code/cli/target/release/code /projects/code-cli && \ + rm -rf /projects/che-code/code/cli/target + group: + kind: build + + - id: open-tunnel + exec: + label: Create a tunnel to this workspace + component: dev + workingDir: ${PROJECTS_ROOT} + commandLine: | + ./code-cli --log debug tunnel --accept-server-license-terms --name ${DEVWORKSPACE_NAME} + group: + kind: run