2
0
Fork 0
mirror of https://github.com/redhat-actions/push-to-registry.git synced 2025-09-15 17:26:56 +00:00

Update README

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-11-11 20:02:07 +05:30
parent 9c4398c33e
commit 27553499f0
7 changed files with 28 additions and 14 deletions

View file

@ -16,7 +16,7 @@ export enum Inputs {
*/
EXTRA_ARGS = "extra-args",
/**
* Name of the image to push (e.g. username/imagename or imagename)
* Name of the image/manifest to push (e.g. username/imagename or imagename)
* Required: false
* Default: None.
*/
@ -34,7 +34,8 @@ export enum Inputs {
*/
REGISTRY = "registry",
/**
* The tag or tags of the image to push. For multiple tags, seperate by whitespace. For example, "latest v1"
* 'The tag or tags of the image/manifest to push.
* For multiple tags, seperate by whitespace. For example, "latest v1"'
* Required: false
* Default: "latest"
*/
@ -55,7 +56,7 @@ export enum Inputs {
export enum Outputs {
/**
* The pushed image digest, as written to the "digestfile"
* The pushed image/manifest digest, as written to the "digestfile"
* Required: false
* Default: None.
*/

View file

@ -236,6 +236,10 @@ async function run(): Promise<void> {
isImageFromDocker ? getFullDockerImageName(sourceImages[i]) : sourceImages[i],
destinationImages[i],
]);
// to push all the images referenced in the manifest
if (isManifest) {
args.push("--all");
}
if (podmanExtraArgs.length > 0) {
args.push(...podmanExtraArgs);
}