We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2461c2 commit c39e805Copy full SHA for c39e805
src/ImageDetector.ts
@@ -11,6 +11,7 @@ export class ImageDetector {
11
async getExistingImages(): Promise<string[]> {
12
const ids = (await exec.exec(`docker image ls -q`, [], { silent: true })).stdoutStr.split(`\n`).filter(id => id !== ``)
13
const repotags = (await exec.exec(`sh -c "docker image ls --format '{{ .Repository }}:{{ .Tag }}' --filter 'dangling=false'"`, [], { silent: true })).stdoutStr.split(`\n`).filter(id => id !== ``);
14
+ core.debug(JSON.stringify({ log: "getExistingImages", ids, repotags }));
15
([...ids, ...repotags]).forEach(image => this.existingImages.add(image))
16
core.debug(JSON.stringify({ existingImages: this.existingImages }))
17
return Array.from(this.existingImages)
0 commit comments