Skip to content

Commit

Permalink
feat: build CLI from sources
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <[email protected]>
  • Loading branch information
vitaliy-guliy committed Feb 29, 2024
1 parent 388ec54 commit 02176fa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 02176fa

Please sign in to comment.