8000 Note about image name and tag sanitization · docker/metadata-action@678218f · GitHub
[go: up one dir, main page]

Skip to content

Commit 678218f

Browse files
committed
Note about image name and tag sanitization
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent e44c1fb commit 678218f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ___
3131
* [`type=raw`](#typeraw)
3232
* [`type=sha`](#typesha)
3333
* [Notes](#notes)
34+
* [Image name and tag sanitization](#image-name-and-tag-sanitization)
3435
* [Latest tag](#latest-tag)
3536
* [Global expressions](#global-expressions)
3637
* [`{{branch}}`](#branch)
@@ -625,6 +626,22 @@ tags: |
625626

626627
## Notes
627628

629+
### Image name and tag sanitization
630+
631+
In order to comply with [the specification](https://docs.docker.com/engine/reference/commandline/tag/#extended-description),
632+
the image name components may contain lowercase letters, digits and separators.
633+
A separator is defined as a period, one or two underscores, or one or more
634+
dashes. A name component may not start or end with a separator.
635+
636+
A tag name must be a valid ASCII chars sequences and may contain lowercase and
637+
uppercase letters, digits, underscores, periods and dashes. A tag name may not
638+
start with a period or a dash and may contain a maximum of 128 characters.
639+
640+
To ease the integration in your workflow, this action will automatically:
641+
642+
* Lowercase the image name
643+
* Replace invalid chars sequences with `-` for tags
644+
628645
### Latest tag
629646

630647
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be generated by default (`auto` mode) for:

0 commit comments

Comments
 (0)
0