Skip to content

Commit

Permalink
Prefer imageInfoList to images
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Mar 3, 2022
1 parent 795abdc commit 308510f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/cleanup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cleanup/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export async function cleanupOldImageVersions(

core.info(`Cleaning up images for ${repo}`)

docker.listImages(options, async function (err, images) {
if (images && images.length > 0) {
for (const imageInfo of images) {
docker.listImages(options, async function (err, imageInfoList) {
if (imageInfoList && imageInfoList.length > 0) {
for (const imageInfo of imageInfoList) {
// The given imageName is expected to be a digest, however to avoid any surprises in future
// we fail over to check for a match on tags as well.
//
Expand Down

0 comments on commit 308510f

Please sign in to comment.