Skip to content

Commit

Permalink
add --silent flag to curl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ajschmidt8 committed Nov 27, 2023
1 parent f302e50 commit aeb8f14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/cleanup_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ delete_image() {
local repo=$2
local tag=$3

curl --fail-with-body -i -X DELETE \
curl --silent --fail-with-body -i -X DELETE \
-H "Accept: application/json" \
-H "Authorization: JWT $HUB_TOKEN" \
"https://hub.docker.com/v2/repositories/$org/$repo/tags/$tag/"

echo "Deleted image $org/$repo:$tag"
}

Expand All @@ -22,7 +22,7 @@ fetch_tags() {
local repo=$2
local page=$3

curl -L --fail-with-body \
curl --silent -L --fail-with-body \
-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 aeb8f14

Please sign in to comment.