2
0
Fork 0
mirror of https://github.com/redhat-actions/push-to-registry.git synced 2025-07-17 16:38:30 +00:00

Resolve Reviews

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-01-28 20:52:10 +05:30
parent 3b62e47486
commit c83fdad66a
4 changed files with 6 additions and 6 deletions

View file

@ -207,10 +207,10 @@ async function isPodmanLocalImageLatest(): Promise<boolean> {
// remove the pulled image from the Podman image storage
async function removeDockerImage(): Promise<void> {
if (imageToPush) {
core.info(`Removing ${imageToPush} from the Podman image storage`);
for (const tag of tagsList) {
const imageWithTag = `${imageToPush}:${tag}`;
await execute(await getPodmanPath(), [ "rmi", imageWithTag ]);
core.info(`Removing ${imageWithTag} from the Podman image storage`);
}
}
}