The tags input is the core configuration for docker/metadata-action. It accepts a list of key-value pairs in CSV format, where each entry defines a tag generation rule via a type.
If the tags input is left empty, the action defaults to:
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
Each entry can be customized with global attributes:
enable=<true|false>: Enables or disables the entry (default: true).priority=<number>: Sets the order of the tags.prefix=<string>: Adds a prefix to the generated tag.suffix=<string>: Adds a suffix to the generated tag.
tags: |
type=schedule
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
type=sha