|
47 | 47 | * [`{{date '<format>' tz='<timezone>'}}`](#date-format-tztimezone)
|
48 | 48 | * [Major version zero](#major-version-zero)
|
49 | 49 | * [JSON output object](#json-output-object)
|
50 |
| - * [Overwrite labels](#overwrite-labels) |
| 50 | + * [Overwrite labels and annotations](#overwrite-labels-and-annotations) |
51 | 51 | * [Annotations](#annotations)
|
52 | 52 | * [Contributing](#contributing)
|
53 | 53 |
|
@@ -293,16 +293,18 @@ The following inputs can be used as `step.with` keys:
|
293 | 293 | > org.opencontainers.image.vendor=MyCompany
|
294 | 294 | > ```
|
295 | 295 |
|
296 |
| -| Name | Type | Description | |
297 |
| -|---------------|--------|-------------------------------------------------------------------------------| |
298 |
| -| `context` | String | Where to get context data. Allowed options are: `workflow` (default), `git`. | |
299 |
| -| `images` | List | List of Docker images to use as base name for tags | |
300 |
| -| `tags` | List | List of [tags](#tags-input) as key-value pair attributes | |
301 |
| -| `flavor` | List | [Flavor](#flavor-input) to apply | |
302 |
| -| `labels` | List | List of custom labels | |
303 |
| -| `sep-tags` | String | Separator to use for tags output (default `\n`) | |
304 |
| -| `sep-labels` | String | Separator to use for labels output (default `\n`) | |
305 |
| -| `bake-target` | String | Bake target name (default `docker-metadata-action`) | |
| 296 | +| Name | Type | Description | |
| 297 | +|-------------------|--------|------------------------------------------------------------------------------| |
| 298 | +| `context` | String | Where to get context data. Allowed options are: `workflow` (default), `git`. | |
| 299 | +| `images` | List | List of Docker images to use as base name for tags | |
| 300 | +| `tags` | List | List of [tags](#tags-input) as key-value pair attributes | |
| 301 | +| `flavor` | List | [Flavor](#flavor-input) to apply | |
| 302 | +| `labels` | List | List of custom labels | |
| 303 | +| `annotations` | List | List of custom anntoations | |
| 304 | +| `sep-tags` | String | Separator to use for tags output (default `\n`) | |
| 305 | +| `sep-labels` | String | Separator to use for labels output (default `\n`) | |
| 306 | +| `sep-annotations` | String | Separator to use for annotations output (default `\n`) | |
| 307 | +| `bake-target` | String | Bake target name (default `docker-metadata-action`) | |
306 | 308 |
|
307 | 309 | ### outputs
|
308 | 310 |
|
@@ -893,10 +895,11 @@ that you can reuse them further in your workflow using the [`fromJSON` function]
|
893 | 895 | REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
894 | 896 | ```
|
895 | 897 |
|
896 |
| -### Overwrite labels |
| 898 | +### Overwrite labels and annotations |
897 | 899 |
|
898 | 900 | If some [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
|
899 |
| -labels generated are not suitable, you can overwrite them like this: |
| 901 | +generated are not suitable as labels/annotations, you can overwrite them like |
| 902 | +this: |
900 | 903 |
|
901 | 904 | ```yaml
|
902 | 905 | -
|
|
0 commit comments