|
19 | 19 | * [Customizing](#customizing) |
20 | 20 | * [inputs](#inputs) |
21 | 21 | * [outputs](#outputs) |
| 22 | +* [`images` input](#images-input) |
22 | 23 | * [`flavor` input](#flavor-input) |
23 | 24 | * [`tags` input](#tags-input) |
24 | 25 | * [`type=schedule`](#typeschedule) |
@@ -125,7 +126,8 @@ jobs: |
125 | 126 | id: meta |
126 | 127 | uses: docker/metadata-action@v3 |
127 | 128 | with: |
128 | | - images: name/app |
| 129 | + images: | |
| 130 | + name/app |
129 | 131 | tags: | |
130 | 132 | type=ref,event=branch |
131 | 133 | type=ref,event=pr |
@@ -202,7 +204,8 @@ jobs: |
202 | 204 | id: meta |
203 | 205 | uses: docker/metadata-action@v3 |
204 | 206 | with: |
205 | | - images: name/app |
| 207 | + images: | |
| 208 | + name/app |
206 | 209 | tags: | |
207 | 210 | type=ref,event=branch |
208 | 211 | type=ref,event=pr |
@@ -264,33 +267,51 @@ Following inputs can be used as `step.with` keys |
264 | 267 | > org.opencontainers.image.vendor=MyCompany |
265 | 268 | > ``` |
266 | 269 |
|
267 | | -> `CSV` type is a comma-delimited string |
268 | | -> ```yaml |
269 | | -> images: name/app,ghcr.io/name/app |
270 | | -> ``` |
271 | | - |
272 | | -| Name | Type | Description | |
273 | | -|---------------------|----------|------------------------------------| |
274 | | -| `images` | List/CSV | List of Docker images to use as base name for tags | |
275 | | -| `tags` | List | List of [tags](#tags-input) as key-value pair attributes | |
276 | | -| `flavor` | List | [Flavor](#flavor-input) to apply | |
277 | | -| `labels` | List | List of custom labels | |
278 | | -| `sep-tags` | String | Separator to use for tags output (default `\n`) | |
279 | | -| `sep-labels` | String | Separator to use for labels output (default `\n`) | |
280 | | -| `bake-target` | String | Bake target name (default `docker-metadata-action`) | |
| 270 | +| Name | Type | Description | |
| 271 | +|---------------------|--------|----------------------------------------------------------| |
| 272 | +| `images` | List | List of Docker images to use as base name for tags | |
| 273 | +| `tags` | List | List of [tags](#tags-input) as key-value pair attributes | |
| 274 | +| `flavor` | List | [Flavor](#flavor-input) to apply | |
| 275 | +| `labels` | List | List of custom labels | |
| 276 | +| `sep-tags` | String | Separator to use for tags output (default `\n`) | |
| 277 | +| `sep-labels` | String | Separator to use for labels output (default `\n`) | |
| 278 | +| `bake-target` | String | Bake target name (default `docker-metadata-action`) | |
281 | 279 |
|
282 | 280 | ### outputs |
283 | 281 |
|
284 | 282 | Following outputs are available |
285 | 283 |
|
286 | | -| Name | Type | Description | |
287 | | -|---------------|---------|---------------------------------------| |
288 | | -| `version` | String | Docker image version | |
289 | | -| `tags` | String | Docker tags | |
290 | | -| `labels` | String | Docker labels | |
291 | | -| `json` | String | JSON output of tags and labels | |
| 284 | +| Name | Type | Description | |
| 285 | +|---------------|---------|-------------------------------------------------------------------------------| |
| 286 | +| `version` | String | Docker image version | |
| 287 | +| `tags` | String | Docker tags | |
| 288 | +| `labels` | String | Docker labels | |
| 289 | +| `json` | String | JSON output of tags and labels | |
292 | 290 | | `bake-file` | File | [Bake definition file](https://github.com/docker/buildx#file-definition) path | |
293 | 291 |
|
| 292 | +## `images` input |
| 293 | + |
| 294 | +`images` defines a list of Docker images to use as base name for [`tags`](#tags-input): |
| 295 | + |
| 296 | +```yaml |
| 297 | +images: | |
| 298 | + name/foo |
| 299 | + ghcr.io/name/bar |
| 300 | + # or |
| 301 | + name=name/foo |
| 302 | + name=ghcr.io/name/bar |
| 303 | +``` |
| 304 | + |
| 305 | +Extended attributes and default values: |
| 306 | + |
| 307 | +```yaml |
| 308 | +images: | |
| 309 | + name=,enable=true |
| 310 | +``` |
| 311 | + |
| 312 | +* `name=<string>` image base name |
| 313 | +* `enable=<true|false>` enable this entry (default `true`) |
| 314 | + |
294 | 315 | ## `flavor` input |
295 | 316 |
|
296 | 317 | `flavor` defines a global behavior for [`tags`](#tags-input): |
|
0 commit comments