Skip to main content

pushImage

@webda/oci


Function: pushImage()

pushImage(image, target, tags, options?): Promise<string>

Defined in: packages/oci/src/image.ts:413

Push a built image to a repository with its tags

Blobs already in the target are skipped. Base layers missing from the layout are mounted from the base repository when it is on the same registry, otherwise copied from the base registry.

Parameters​

image​

BuiltImage

the built image

target​

ImageReference

the target repository, its tag is ignored

tags​

string[]

tags to push

options?​

RegistryOptions = {}

registry options

Returns​

Promise<string>

the digest of the pushed root manifest