build: retry the yt-dlp download in the image build
CI / chart (push) Successful in 2s
CI / test (push) Successful in 2m3s
CI / chart-push (push) Successful in 5s
CI / image (push) Successful in 3m42s

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:
TapTap committed 2026-11-22 17:53:20 +00:00
1 parent a3c5da559b
commit 89e6b0c025
1 file changed
+3 -1
+3 -1
View File
@@ -23,7 +23,9 @@ RUN apt-get update \
python3 \ python3 \
python3-pip \ python3-pip \
&& rm -rf /var/lib/apt/lists/* \ && 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 \ -o /usr/local/bin/yt-dlp \
&& chmod 0755 /usr/local/bin/yt-dlp \ && chmod 0755 /usr/local/bin/yt-dlp \
&& pip3 install --no-cache-dir "streamrip==${STREAMRIP_VERSION}" \ && pip3 install --no-cache-dir "streamrip==${STREAMRIP_VERSION}" \