Skip to content

Commit

Permalink
increase retries
Browse files Browse the repository at this point in the history
I still receive job failure notifications regularly due to 500s from DockerHub. hopefully this fixes it.
  • Loading branch information
ajschmidt8 authored Sep 21, 2024
1 parent 96db5b1 commit 2ea3eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/cleanup_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ delete_image() {
local tag=$3

curl --silent --fail-with-body -X DELETE \
--retry 5 --retry-all-errors \
--retry 15 --retry-all-errors \
-H "Accept: application/json" \
-H "Authorization: JWT $HUB_TOKEN" \
"https://hub.docker.com/v2/repositories/$org/$repo/tags/$tag/"
Expand All @@ -24,7 +24,7 @@ fetch_tags() {
local page=$3

curl --silent -L --fail-with-body \
--retry 5 --retry-all-errors \
--retry 15 --retry-all-errors \
-H "Accept: application/json" \
-H "Authorization: JWT $HUB_TOKEN" \
"https://hub.docker.com/v2/namespaces/$org/repositories/$repo/tags?page=$page&page_size=100"
Expand Down

0 comments on commit 2ea3eea

Please sign in to comment.