mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-20 06:36:17 +02:00
Resolve Review comments
This commit is contained in:
parent
f2622a46a5
commit
260181aca3
5 changed files with 7 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
||||||
out/
|
|
||||||
dist/
|
|
|
@ -128,7 +128,7 @@ If the image to push is present in the Docker image storage but not in the Podma
|
||||||
|
|
||||||
If the image to push is present in both the Docker and Podman image storage, the action will push the image which was more recently built, and log a warning.
|
If the image to push is present in both the Docker and Podman image storage, the action will push the image which was more recently built, and log a warning.
|
||||||
|
|
||||||
If an image was pulled from the Docker image storage into the Podman storage, it will be cleaned up from the Podman storage before the action exits.
|
If the action pulled an image from the Docker image storage into the Podman storage, it will be cleaned up from the Podman storage before the action exits.
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
Note that quay.io repositories are private by default.<br>
|
Note that quay.io repositories are private by default.<br>
|
||||||
|
|
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
|
@ -193,8 +193,10 @@ async function isPodmanLocalImageLatest(
|
||||||
|
|
||||||
// remove the pulled image from the Podman image storage
|
// remove the pulled image from the Podman image storage
|
||||||
async function removeDockerImage(): Promise<void> {
|
async function removeDockerImage(): Promise<void> {
|
||||||
|
if (!imageToPush) {
|
||||||
core.info(`Removing ${imageToPush} from the Podman image storage`);
|
core.info(`Removing ${imageToPush} from the Podman image storage`);
|
||||||
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
|
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function execute(
|
async function execute(
|
||||||
|
|
Loading…
Add table
Reference in a new issue