14 lines
346 B
Python
14 lines
346 B
Python
import os
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class RuntimeConfig:
|
|
app_version: str = os.getenv("APP_VERSION", "dev")
|
|
git_commit: str = os.getenv("GIT_COMMIT", "local")
|
|
build_number: str = os.getenv("BUILD_NUMBER", "-")
|
|
commit_author: str = os.getenv("COMMIT_AUTHOR", "local")
|
|
|
|
|
|
settings = RuntimeConfig()
|