You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flags.StringArrayVarP(&options.annotations, "annotation", "", []string{}, "Add annotation to the image")
349
360
flags.BoolVar(&options.preferIndex, "prefer-index", true, "When only a single source is specified, prefer outputting an image index or manifest list instead of performing a carbon copy")
350
361
flags.StringArrayVarP(&options.platforms, "platform", "p", []string{}, "Filter specified platforms of target image")
362
+
flags.StringVar(&options.metadataFile, "metadata-file", "", "Write create result metadata to a file")
|[`--annotation`](#annotation)|`stringArray`|| Add annotation to the image |
15
-
|[`--append`](#append)|`bool`|| Append to existing manifest |
16
-
|[`--builder`](#builder)|`string`|| Override the configured builder instance |
17
-
|`-D`, `--debug`|`bool`|| Enable debug logging |
18
-
|[`--dry-run`](#dry-run)|`bool`|| Show final image instead of pushing |
19
-
|[`-f`](#file), [`--file`](#file)|`stringArray`|| Read source descriptor from file |
20
-
|`-p`, `--platform`|`stringArray`|| Filter specified platforms of target image |
21
-
|`--prefer-index`|`bool`|`true`| When only a single source is specified, prefer outputting an image index or manifest list instead of performing a carbon copy |
22
-
|`--progress`|`string`|`auto`| Set type of progress output (`auto`, `none`, `plain`, `rawjson`, `tty`). Use plain to show container output |
23
-
|[`-t`](#tag), [`--tag`](#tag)|`stringArray`|| Set reference for new image |
|[`--annotation`](#annotation)|`stringArray`|| Add annotation to the image |
15
+
|[`--append`](#append)|`bool`|| Append to existing manifest |
16
+
|[`--builder`](#builder)|`string`|| Override the configured builder instance |
17
+
|`-D`, `--debug`|`bool`|| Enable debug logging |
18
+
|[`--dry-run`](#dry-run)|`bool`|| Show final image instead of pushing |
19
+
|[`-f`](#file), [`--file`](#file)|`stringArray`|| Read source descriptor from file |
20
+
|[`--metadata-file`](#metadata-file)|`string`|| Write create result metadata to a file |
21
+
|`-p`, `--platform`|`stringArray`|| Filter specified platforms of target image |
22
+
|`--prefer-index`|`bool`|`true`| When only a single source is specified, prefer outputting an image index or manifest list instead of performing a carbon copy |
23
+
|`--progress`|`string`|`auto`| Set type of progress output (`auto`, `none`, `plain`, `rawjson`, `tty`). Use plain to show container output |
24
+
|[`-t`](#tag), [`--tag`](#tag)|`stringArray`|| Set reference for new image |
24
25
25
26
26
27
<!---MARKER_GEN_END-->
@@ -100,6 +101,23 @@ The descriptor in the file is merged with existing descriptor in the registry if
100
101
101
102
The supported fields for the descriptor are defined in [OCI spec](https://github.com/opencontainers/image-spec/blob/master/descriptor.md#properties) .
102
103
104
+
### <aname="metadata-file"></a> Write create result metadata to a file (--metadata-file)
105
+
106
+
To output metadata such as the image digest, pass the `--metadata-file` flag.
107
+
The metadata will be written as a JSON object to the specified file. The
108
+
directory of the specified file must already exist and be writable.
0 commit comments