git credentials

This commit is contained in:
2025-01-08 23:54:57 -05:00
parent c46b465a19
commit 7f4e807feb
3 changed files with 7 additions and 5 deletions

View File

@@ -5,9 +5,9 @@ from time import time
@dataclass
class DeployerRequest:
user: str
repo: str
branch: str
clone_url: str
commit_hash: str
DEPLOYERDIR = "/home/drm/live"
@@ -26,9 +26,9 @@ def handle_request(rq: DeployerRequest):
env=dict(
os.environ,
DEPLOYERDIR=DEPLOYERDIR,
USER=rq.user,
REPO=rq.repo,
BRANCH=rq.branch,
CLONE_URL=rq.clone_url,
BRANCH=rq.branch
COMMIT_HASH=rq.commit_hash,
),
)