Init
This commit is contained in:
13
backend/app/settings.py
Normal file
13
backend/app/settings.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user