Skip to content

Commit

Permalink
Double the number of pages we request from Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Aug 7, 2020
1 parent 102e9bb commit e2075e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/all-images.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$upstreamImages = [];
foreach (range(1, 5) as $i) {
foreach (range(1, 10) as $i) {
$upstreamJson = json_decode(file_get_contents('https://hub.docker.com/v2/repositories/library/php/tags?page_size=100&page=' . $i), true);
foreach ($upstreamJson['results'] as $image) {
$upstreamImages[$image['name']] = new DateTimeImmutable($image['last_updated']);
Expand Down
2 changes: 1 addition & 1 deletion utils/newer-upstream-images.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$upstreamImages = [];
foreach (range(1, 5) as $i) {
foreach (range(1, 10) as $i) {
$upstreamJson = json_decode(file_get_contents('https://hub.docker.com/v2/repositories/library/php/tags?page_size=100&page=' . $i), true);
foreach ($upstreamJson['results'] as $image) {
$upstreamImages[$image['name']] = new DateTimeImmutable($image['last_updated']);
Expand Down

0 comments on commit e2075e4

Please sign in to comment.