build: retry the yt-dlp download in the image build
The release download from github.com occasionally resets the connection on the runner, which failed the image job twice in a row while test and chart passed. Retry the fetch and bound the connect time.
This commit is contained in:
1 parent
a3c5da559b
commit
89e6b0c025
1 file changed
+3
-1
+3
-1
@@ -23,7 +23,9 @@ RUN apt-get update \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fsSL "https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp_linux" \
|
||||
&& curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors \
|
||||
--connect-timeout 20 \
|
||||
"https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP_VERSION}/yt-dlp_linux" \
|
||||
-o /usr/local/bin/yt-dlp \
|
||||
&& chmod 0755 /usr/local/bin/yt-dlp \
|
||||
&& pip3 install --no-cache-dir "streamrip==${STREAMRIP_VERSION}" \
|
||||
|
||||
Reference in new issue
Block a user