mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
Merge pull request #14322 from samuelkarp/retry-limactl-start
ci: retry limactl start on VM boot failure
This commit is contained in:
1 file changed
+8
-1
@@ -663,7 +663,14 @@ jobs:
|
||||
key: lima-${{ steps.lima-actions-setup.outputs.version }}-${{ matrix.template }}
|
||||
- name: Boot VM
|
||||
# --plain keeps the guest pristine (no guest agent, no mounts, no port forwards)
|
||||
run: limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE"
|
||||
run: |
|
||||
limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE" || {
|
||||
# limactl can fail to download the VM image due to flakiness on the
|
||||
# upstream mirrors, wait a bit and retry
|
||||
limactl delete -f default || true
|
||||
sleep 60
|
||||
limactl start --plain --name=default --cpus=2 --memory=4 --disk=60 "template:$LIMA_TEMPLATE"
|
||||
}
|
||||
- name: Copy the source code to the VM
|
||||
env:
|
||||
# $LIMA_WORKDIR does not exist yet
|
||||
|
||||
Reference in new issue
Block a user