Skip to content

Commit 4d829bf

Browse files
authored
fix(datasource/docker): fetch up to 1000 pages for ghcr.io (renovatebot#36103)
1 parent a02dd07 commit 4d829bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/modules/datasource/docker/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,13 @@ export class DockerDatasource extends Datasource {
670670
return null;
671671
}
672672
let page = 0;
673-
const pages = GlobalConfig.get('dockerMaxPages', 20);
673+
const hostsNeedingAllPages = [
674+
'https://ghcr.io', // GHCR sorts from oldest to newest, so we need to get all pages
675+
];
676+
const pages = hostsNeedingAllPages.includes(registryHost)
677+
? 1000
678+
: GlobalConfig.get('dockerMaxPages', 20);
679+
logger.trace({ registryHost, dockerRepository, pages }, 'docker.getTags');
674680
let foundMaxResultsError = false;
675681
do {
676682
let res: HttpResponse<{ tags: string[] }>;

0 commit comments

Comments
 (0)