diff --git a/doc/configuration.rst b/doc/configuration.rst index 76b03a1a..d0caacbc 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -62,8 +62,10 @@ Options **release_version** [mandatory] (*str*) -- release version -**release_type** = "ga" - (*str*) -- release type, "ga" or "updates" +**release_type** = "ga" (*str*) -- release type, for example ``ga``, + ``updates`` or ``updates-testing``. See `list of all valid values + `_ + in productmd documentation. **release_is_layered** = False (*bool*) -- typically False for an operating system, True otherwise diff --git a/pungi/checks.py b/pungi/checks.py index 3a68ef9d..f7c5c1af 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -44,6 +44,7 @@ import re import jsonschema import six from kobo.shortcuts import force_list +from productmd.common import RELEASE_TYPES from productmd.composeinfo import COMPOSE_TYPES import multiprocessing @@ -520,7 +521,7 @@ def make_schema(): "release_version": {"type": "string"}, "release_type": { "type": "string", - "enum": ["fast", "ga", "updates", "eus", "aus", "els"], + "enum": RELEASE_TYPES, "default": "ga", }, "release_is_layered": {"type": "boolean"},