Skip to content

Commit e1e273f

Browse files
committed
CI: make cache download attempt time out after 10 minutes
1 parent 40ebd07 commit e1e273f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ci/docker/run.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
7070
echo "Attempting to download $url"
7171
rm -f /tmp/rustci_docker_cache
7272
set +e
73-
retry curl -y 30 -Y 10 --connect-timeout 30 -f -L -C - -o /tmp/rustci_docker_cache "$url"
73+
retry curl --max-time 600 -y 30 -Y 10 --connect-timeout 30 -f -L -C - \
74+
-o /tmp/rustci_docker_cache "$url"
7475
loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
7576
set -e
7677
echo "Downloaded containers:\n$loaded_images"

0 commit comments

Comments
 (0)