From 87c21008821ffc3950652861c2dadce2e555ecca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Fri, 17 May 2024 12:11:30 +0200 Subject: [PATCH] chore: increase page_size for fetch_postgres_image_version() (#100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- lib/repo_funcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repo_funcs.sh b/lib/repo_funcs.sh index 88d97855..6bd03996 100644 --- a/lib/repo_funcs.sh +++ b/lib/repo_funcs.sh @@ -20,7 +20,7 @@ fetch_postgres_image_version() { local suite="$1"; shift local distro="$1"; shift local item="$1"; shift - curl -SsL "https://registry.hub.docker.com/v2/repositories/library/postgres/tags/?name=${distro}&ordering=last_updated&page_size=20" | \ + curl -SsL "https://registry.hub.docker.com/v2/repositories/library/postgres/tags/?name=${distro}&ordering=last_updated&page_size=50" | \ jq -c ".results[] | select( .name | match(\"^${suite}.[a-z0-9]+-${distro}$\"))" | \ jq -r ".${item}" | \ head -n1