Skip to content

Commit e3cff95

Browse files
committed
fix(ci): yolobox reuse VM
Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>
1 parent 960ab8a commit e3cff95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,6 @@ trap cleanup EXIT
576576
577577
if limactl create template:ubuntu --yes --name "$VM_NAME" --plain --vm-type=vz --rosetta --memory 36 --cpus 4 --set '.nestedVirtualization=true'; then
578578
limactl start "$VM_NAME"
579-
mkdir -p "$HOME/.ssh"
580-
printf "\nInclude ${LIMA_HOME:-$HOME/.lima}/$VM_NAME/ssh.config" >> "$HOME/.ssh/config"
581579
limactl shell "$VM_NAME" bash -c "
582580
set -euxo pipefail
583581
export DEBIAN_FRONTEND=noninteractive
@@ -618,6 +616,8 @@ else
618616
limactl start "$VM_NAME"
619617
fi
620618
limactl shell "$VM_NAME" bash -c "cd /git/$REPO && mise trust && mise install"
619+
mkdir -p "$HOME/.ssh"
620+
printf "\nInclude ${LIMA_HOME:-$HOME/.lima}/$VM_NAME/ssh.config" >> "$HOME/.ssh/config"
621621
code --new-window --wait --folder-uri "vscode-remote://ssh-remote+lima-$VM_NAME/git/$REPO"
622622
'''
623623

0 commit comments

Comments
 (0)