-
Notifications
You must be signed in to change notification settings - Fork 424
DL3056
Moritz Röhrich edited this page Mar 23, 2021
·
1 revision
This rule is activated by specifying a label-schema including a label of type semver
. This can be done via command line
$ hadolint --require-label version:semver Dockerfile
or in the config file:
label-schema:
version: semver
LABEL version="something-other-than-a-version-number"
LABEL version="1.0.0-rc1"
Specifying a version either for the resulting image or for the software contained within is often a crucial part of release engineering. Semantic versioning allows to do so in a well understood manner, which also communicates extend of changes between versions or possible incompatibilities.
This rule does not expand variables. It requires the value of a label to be a literal semantic version number.