mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-05-04 04:09:54 +02:00
Resolve Review comments
This commit is contained in:
parent
f2622a46a5
commit
260181aca3
5 changed files with 7 additions and 7 deletions
|
@ -193,8 +193,10 @@ async function isPodmanLocalImageLatest(
|
|||
|
||||
// remove the pulled image from the Podman image storage
|
||||
async function removeDockerImage(): Promise<void> {
|
||||
core.info(`Removing ${imageToPush} from the Podman image storage`);
|
||||
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
|
||||
if (!imageToPush) {
|
||||
core.info(`Removing ${imageToPush} from the Podman image storage`);
|
||||
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
|
||||
}
|
||||
}
|
||||
|
||||
async function execute(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue