mirror of
https://github.com/docker/metadata-action.git
synced 2026-01-20 12:48:57 +08:00
Add tag flavor
This commit is contained in:
parent
9de4428611
commit
94c31d2fed
6 changed files with 285 additions and 10 deletions
14
README.md
14
README.md
|
|
@ -248,6 +248,8 @@ Following inputs can be used as `step.with` keys
|
|||
| `tag-schedule` | String | [Template](#schedule-tag) to apply to schedule tag (default `nightly`) |
|
||||
| `sep-tags` | String | Separator to use for tags output (default `\n`) |
|
||||
| `sep-labels` | String | Separator to use for labels output (default `\n`) |
|
||||
| `flavor` | String | Tag suffix to be appended, specifying the image flavor (default ``) |
|
||||
| `main-flavor` | String | Enable tags without flavor suffix (default `true`) |
|
||||
|
||||
> List/CSV type can be a newline or comma delimited string
|
||||
|
||||
|
|
@ -306,6 +308,18 @@ If Git tag is a valid [semver](https://semver.org/) you can handle it to output
|
|||
| `release1` | `\d{1,3}.\d{1,3}` | `0` | :x: | `release1` | `release1` |
|
||||
| `20200110-RC2` | `\d+` | `0` | :white_check_mark: | `20200110`, `latest` | `20200110` |
|
||||
|
||||
### `flavor` examples
|
||||
|
||||
| Git tag | `flavor` | `main-flavor` | `tag-latest` | Output tags |
|
||||
|-------------------------|----------|---------------|--------------|---------------------------------------------|
|
||||
| `v1.2.3` | `debian` | `true` | `true` | `1.2.3-debian`, `1.2.3`, `debian`, `latest` |
|
||||
| `v1.2.3` | `debian` | `true` | `false` | `1.2.3-debian`, `1.2.3` |
|
||||
| `v1.2.3` | `alpine` | `false` | `true` | `1.2.3-alpine`, `alpine` |
|
||||
| `v1.2.3` | `alpine` | `false` | `false` | `1.2.3-alpine` |
|
||||
| `v1.2.3` | `` | `` | `true` | `1.2.3`, `latest` |
|
||||
| `v1.2.3` | `` | `` | `false` | `1.2.3` |
|
||||
|
||||
|
||||
### Schedule tag
|
||||
|
||||
`tag-schedule` is specially crafted input to support [Handlebars template](https://handlebarsjs.com/guide/) with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue