Creates a new CacheToRegistry.
compression The compression type to use.
compressionLevel Compression level from 0 to 22.
forceCompression Forcefully apply compression.
ignoreError Ignore errors caused by failed cache exports.
imageManifest Export cache manifest as an OCI-compatible image manifest instead of a
mode The cache mode to use. Defaults to min.
ociMediaTypes Whether to use OCI media types in exported manifests. Defaults to
ref Fully qualified name of the cache image to import.