manifest/push: add support for --add-compression

Adds support for --add-compression which accepts multiple compression
formats and when used it will add all instances in a manifest list with
requested compression formats.

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R
2023-08-01 15:31:52 +05:30
parent 49b8b971ac
commit 346f9cb4ed
11 changed files with 205 additions and 8 deletions

View File

@ -14,6 +14,17 @@ The list image's ID and the digest of the image's manifest.
## OPTIONS
#### **--add-compression**=*compression*
Makes sure that requested compression variant for each platform is added to the manifest list keeping original instance
intact in the same manifest list. Supported values are (`gzip`, `zstd` and `zstd:chunked`). Following flag can be used
multiple times.
Note that `--compression-format` controls the compression format of each instance in the manifest list. `--add-compression`
will add another variant for each instance in the list with the specified compressions. `--compression-format` gzip `--add-compression`
zstd will push a manifest list with each instance being compressed with gzip plus an additional variant of each instance
being compressed with zstd.
#### **--all**
Push the images mentioned in the manifest list or image index, in addition to