Skip to content

Commit 02176fa

Browse files
committed
feat: build CLI from sources
Signed-off-by: vitaliy-guliy <vgulyy@redhat.com>
1 parent 388ec54 commit 02176fa

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

devfile.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,25 @@ commands:
9797
podman build -f build/dockerfiles/assembly.libc.Dockerfile -t che-code .
9898
group:
9999
kind: run
100+
101+
- id: build-cli
102+
exec:
103+
label: Build VS Code CLI from sources
104+
component: dev
105+
workingDir: ${PROJECTS_ROOT}/che-code/code/cli
106+
commandLine: |
107+
cargo build --release && \
108+
cp /projects/che-code/code/cli/target/release/code /projects/code-cli && \
109+
rm -rf /projects/che-code/code/cli/target
110+
group:
111+
kind: build
112+
113+
- id: open-tunnel
114+
exec:
115+
label: Create a tunnel to this workspace
116+
component: dev
117+
workingDir: ${PROJECTS_ROOT}
118+
commandLine: |
119+
./code-cli --log debug tunnel --accept-server-license-terms --name ${DEVWORKSPACE_NAME}
120+
group:
121+
kind: run

0 commit comments

Comments
 (0)