Remove image only if pulled from docker

This commit is contained in:
なつき 2021-10-08 17:06:57 +00:00
parent aa32e639fb
commit a6c2c0fd7f
3 changed files with 5 additions and 2 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

@ -348,6 +348,9 @@ async function isPodmanLocalImageLatest(): Promise<boolean> {
// remove the pulled image from the Podman image storage
async function removeDockerImage(): Promise<void> {
if (!isImageFromDocker) {
return;
}
core.info(`Removing "${sourceImages[0]}" from the Podman image storage`);
for (const imageWithTag of sourceImages) {
await execute(