Skip to content

Commit f9aebc4

Browse files
Add retries to the eksctl downloads (#719)
This guards against network issues where sometimes downloading the release fails, which fails the entire job.
1 parent 17095df commit f9aebc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup-eksctl/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ runs:
5353
fi
5454
5555
echo "download eksctl for $platform platform from $url/$fname"
56-
curl -sL "$url/$fname" > "$fname" ||
56+
curl -o "$fname" -fsL --retry 5 --retry-delay 1 --retry-all-errors "$url/$fname" ||
5757
fail "download failed $url"
5858
5959
cksum_url="$url/eksctl_checksums.txt"
6060
echo "verify download against ${cksum_url}"
61-
curl -sL "${cksum_url}" > checksums.txt ||
61+
curl -o checksums.txt -fsL --retry 5 --retry-delay 1 --retry-all-errors "${cksum_url}" ||
6262
fail "failed to download checksums from $cksum_url"
6363
grep "$fname" checksums.txt > checksums.platform || {
6464
cat checksums.txt

0 commit comments

Comments
 (0)