diff --git a/pyoaev/apis/injector.py b/pyoaev/apis/injector.py index c6ea0d8..c7d3364 100644 --- a/pyoaev/apis/injector.py +++ b/pyoaev/apis/injector.py @@ -26,5 +26,6 @@ class InjectorManager(GetMixin, ListMixin, CreateMixin, UpdateMixin, RESTManager # connector source code (not user config). The platform attributes # every contract of this injector to an organization of this name. "injector_author", + "injector_commit", ), ) diff --git a/pyoaev/helpers.py b/pyoaev/helpers.py index 6867ba3..d018c7b 100644 --- a/pyoaev/helpers.py +++ b/pyoaev/helpers.py @@ -342,6 +342,8 @@ def __init__(self, config: OpenAEVConfigHelper, icon) -> None: ), # Publisher/author of the injector's contracts (source-declared). "injector_author": config.get_conf("injector_author", default=None), + # Set by the image build + "injector_commit": os.environ.get("INJECTOR_COMMIT") or None, } self.logger_class = utils.logger(