Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
Luca Stocchi 2020-11-13 15:15:17 +01:00
parent 19ea479591
commit e5afab8b69
No known key found for this signature in database
GPG key ID: 930BB00F3FCF30A4
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -20,7 +20,7 @@ export async function run(): Promise<void> {
}
const parsedCheckImages = JSON.parse(checkImages.output);
const imagesFound = parsedCheckImages.
filter(image => image.names && image.names.find(name => name.includes("alpine:latewst"))).
filter(image => image.names && image.names.find(name => name.includes(`${imageToPush}:${tag}`))).
map(image => image.names);
if (imagesFound.length === 0) {
//check inside the docker daemon local storage