mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-02-23 10:31:22 +01:00
Remove image only if pulled from docker
This commit is contained in:
parent
aa32e639fb
commit
a6c2c0fd7f
3 changed files with 5 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue