mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-19 22:26:18 +02:00
Resolve Reviews
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
3b62e47486
commit
c83fdad66a
4 changed files with 6 additions and 6 deletions
|
@ -34,7 +34,7 @@ Refer to the [`podman push`](http://docs.podman.io/en/latest/markdown/podman-man
|
|||
<td>tags</td>
|
||||
<td>No</td>
|
||||
<td>
|
||||
The tag or tags of the image to push. For multiple tags, seperate by a space. For example, <code>latest {{ github.sha }}</code><br>
|
||||
The tag or tags of the image to push. For multiple tags, seperate by a space. For example, <code>latest ${{ github.sha }}</code><br>
|
||||
Defaults to <code>latest</code>.
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -74,11 +74,11 @@ Refer to the [`podman push`](http://docs.podman.io/en/latest/markdown/podman-man
|
|||
## Action Outputs
|
||||
|
||||
`registry-paths`: A JSON array of registry paths to which the tag(s) were pushed.<br>
|
||||
For example, `[ quay.io/username/spring-image:v1,quay.io/username/spring-image:latest ]`.
|
||||
For example, `[ quay.io/username/spring-image:v1, quay.io/username/spring-image:latest ]`.
|
||||
|
||||
`digest`: The pushed image digest, as written to the `digestfile`.<br>
|
||||
For example, `sha256:66ce924069ec4181725d15aa27f34afbaf082f434f448dc07a42daa3305cdab3`.
|
||||
For multiple tags, the digest remains same.
|
||||
For multiple tags, the digest is the same.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
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
|
@ -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`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue