Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,25 @@ commands:
git stash save --include-untracked
git fetch upstream-code main
./rebase.sh

- 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