git credentials
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,3 +3,5 @@ venv/*
|
||||
production/*
|
||||
test*
|
||||
logs/*
|
||||
credentials.sh
|
||||
deploy_key*
|
||||
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user