1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

Update install.yml

This commit is contained in:
Kroese
2026-07-27 01:22:59 +02:00
committed by GitHub
parent b60e59a236
commit 0fc0ac30ec
+16 -3
View File
@@ -476,9 +476,22 @@ jobs:
echo "Building branch: ${{ inputs.branch }}"
echo "Commit: $(git rev-parse HEAD)"
docker build \
--tag "$IMAGE" \
.
for attempt in 1 2 3; do
if docker build \
--tag "$IMAGE" \
.; then
break
fi
if (( attempt == 3 )); then
echo "Image build failed after $attempt attempts."
exit 1
fi
delay=$((attempt * 15))
echo "Image build failed, retrying in $delay seconds..."
sleep "$delay"
done
docker image inspect "$IMAGE" \
--format 'Image ID: {{.Id}}'