Skip to content

Commit 38524f6

Browse files
committed
feat: build CLI from sources
Signed-off-by: vitaliy-guliy <[email protected]>
1 parent f6b6fb0 commit 38524f6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

devfile.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,25 @@ commands:
126126
git stash save --include-untracked
127127
git fetch upstream-code main
128128
./rebase.sh
129+
130+
- id: build-cli
131+
exec:
132+
label: Build VS Code CLI from sources
133+
component: dev
134+
workingDir: ${PROJECTS_ROOT}/che-code/code/cli
135+
commandLine: |
136+
cargo build --release && \
137+
cp /projects/che-code/code/cli/target/release/code /projects/code-cli && \
138+
rm -rf /projects/che-code/code/cli/target
139+
group:
140+
kind: build
141+
142+
- id: open-tunnel
143+
exec:
144+
label: Create a tunnel to this workspace
145+
component: dev
146+
workingDir: ${PROJECTS_ROOT}
147+
commandLine: |
148+
./code-cli --log debug tunnel --accept-server-license-terms --name ${DEVWORKSPACE_NAME}
149+
group:
150+
kind: run

0 commit comments

Comments
 (0)