Skip to content

Commit 0d60d22

Browse files
committed
debug
1 parent 65ac596 commit 0d60d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ImageDetector.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import exec from 'actions-exec-listener'
2+
import * as core from '@actions/core'
23

34
export class ImageDetector {
45
alreadyExistedImages: Set<string> = new Set([])
@@ -11,6 +12,7 @@ export class ImageDetector {
1112
const ids = (await exec.exec(`docker image ls -q`, [], { silent: true })).stdoutStr.split(`\n`).filter(id => id !== ``)
1213
const repotags = (await exec.exec(`sh -c "docker image ls --all --format '{{ .Repository }}:{{ .Tag }}'"`, [], { silent: false })).stdoutStr.split(`\n`).filter(id => id !== `` || !id.includes(`<node>`));
1314
([...ids, ...repotags]).forEach(image => this.existingImages.add(image))
15+
core.debug(JSON.stringify({ existingImages: this.existingImages }))
1416
return Array.from(this.existingImages)
1517
}
1618

0 commit comments

Comments
 (0)