Skip to content

Commit fa6ec47

Browse files
committed
Add 60 retry attempts to curl kitware
Signed-off-by: the-snowwhite <[email protected]>
1 parent 658335b commit fa6ec47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debian/buildsystem/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ RUN apt-get update && \
118118
apt-get clean;
119119

120120
# Kitware is publishing pre-built binaries only for amd64 and arm64 architectures!
121-
RUN curl -1vLf \
122-
$(curl -s https://api.github.com/repos/kitware/cmake/releases/latest | \
121+
RUN curl -1vLf \
122+
$(curl --connect-timeout 30 --retry 60 --retry-delay 10 -s https://api.github.com/repos/kitware/cmake/releases/latest | \
123123
jq -r --arg FILE "cmake-\d{1,}\.\d{1,}\.\d{1,}(-.{1,})?-linux-$(dpkg-architecture -qDEB_BUILD_GNU_CPU)\.sh" \
124124
'.assets | .[] | select(.name? | match($FILE)) | .browser_download_url') \
125125
--output /tmp/cmake.sh && \

0 commit comments

Comments
 (0)