From 99bac618ef7f0b7643897849d1d597fd32a49559 Mon Sep 17 00:00:00 2001 From: Marco Wettstein <maw@panter.ch> Date: Sat, 20 Mar 2021 15:43:45 +0100 Subject: [PATCH] fix: rate limit --- includes/rate-limit-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/rate-limit-check.yml b/includes/rate-limit-check.yml index a2bcdac..fe04ebe 100644 --- a/includes/rate-limit-check.yml +++ b/includes/rate-limit-check.yml @@ -6,4 +6,6 @@ - "apk add curl jq" script: - | - TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/$IMAGE/manifests/latest + IMAGE="ratelimitpreview/test" + TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$IMAGE:pull" | jq -r .token) + curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/$IMAGE/manifests/latest -- GitLab