mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
curl: add --retry 5
Sometimes github gives up 5xx errors, for example: > panic: getImages error exit status 1 (output: curl: (22) The requested URL returned error: 502 > Failed to get https://github.com/docker-library/busybox/raw/dist-i386/stable/glibc/busybox.tar.xz This is unfortunate but temporary, and adding --retry should handle at least some cases, improving CI stability. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ jobs:
|
||||
- name: install shellcheck
|
||||
run: |
|
||||
mkdir ~/bin
|
||||
curl -sSfL $BASEURL/$VERSION/shellcheck-$VERSION.linux.x86_64.tar.xz |
|
||||
curl -sSfL --retry 5 $BASEURL/$VERSION/shellcheck-$VERSION.linux.x86_64.tar.xz |
|
||||
tar xfJ - -C ~/bin --strip 1 shellcheck-$VERSION/shellcheck
|
||||
sha256sum ~/bin/shellcheck | grep -q $SHA256SUM
|
||||
# make sure to remove the old version
|
||||
|
||||
Reference in New Issue
Block a user