Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
a3af7f823f
commit
7ad5460336
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@ -310,9 +310,11 @@ jobs:
|
|||||||
until docker buildx imagetools create "${tag_args[@]}" "${image_args[@]}"; do
|
until docker buildx imagetools create "${tag_args[@]}" "${image_args[@]}"; do
|
||||||
attempts=$((attempts + 1))
|
attempts=$((attempts + 1))
|
||||||
if [[ $attempts -ge 3 ]]; then
|
if [[ $attempts -ge 3 ]]; then
|
||||||
echo "[$(date -u)] ERROR: Failed after 3 attempts."
|
echo "[$(date -u)] ERROR: Failed after 3 attempts." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Push failed (attempt $attempts). Retrying in $((attempts * 5)) seconds..."
|
delay=$((2 ** attempts))
|
||||||
sleep $((attempts * 5))
|
if [[ $delay -gt 60 ]]; then delay=60; fi
|
||||||
|
echo "Push failed (attempt $attempts). Retrying in ${delay} seconds..."
|
||||||
|
sleep ${delay}
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user