fix: add 60s timeout to registry mirror pre-pull to prevent CI hang
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
||||
image_ref="$1"
|
||||
mirror_ref="${mirror_host}/library/${image_ref}"
|
||||
echo "Attempting mirror pre-pull: ${mirror_ref}"
|
||||
if docker pull "${mirror_ref}"; then
|
||||
if timeout 60 docker pull "${mirror_ref}"; then
|
||||
docker tag "${mirror_ref}" "${image_ref}"
|
||||
echo "Mirror pre-pull succeeded for ${image_ref}"
|
||||
else
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
image_ref="$1"
|
||||
mirror_ref="${mirror_host}/library/${image_ref}"
|
||||
echo "Attempting mirror pre-pull: ${mirror_ref}"
|
||||
if docker pull "${mirror_ref}"; then
|
||||
if timeout 60 docker pull "${mirror_ref}"; then
|
||||
docker tag "${mirror_ref}" "${image_ref}"
|
||||
echo "Mirror pre-pull succeeded for ${image_ref}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user