Skip to content

Commit

Permalink
prefetch: handle failed pulls
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Oct 31, 2024
1 parent c701d3c commit d17cb1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ function _prefetch_locksafe() {
for attempt in $(seq 3) ; do
if copy $COPY_REGISTRY_OPTS docker://"$img" dir:$_BUILDAH_IMAGE_CACHEDIR/$fname ; then
break
else
# Failed. Clean up, so we don't leave incomplete remnants
rm -fr $_BUILDAH_IMAGE_CACHEDIR/$fname
fi
sleep 5
done
Expand Down

0 comments on commit d17cb1b

Please sign in to comment.