calling it a night

This commit is contained in:
2025-01-09 00:33:03 -05:00
parent 7f4e807feb
commit 1e43695e06
2 changed files with 2 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ def handle_request(rq: DeployerRequest):
DEPLOYERDIR=DEPLOYERDIR,
USER=rq.user,
REPO=rq.repo,
BRANCH=rq.branch
BRANCH=rq.branch,
COMMIT_HASH=rq.commit_hash,
),
)

View File

@@ -4,8 +4,7 @@ deploydir=$DEPLOYERDIR/$REPO/$BRANCH
mkdir -p $deploydir/src
cd $deploydir
git clone -b $BRANCH "git@localhost:3000/$USER/$REPO.git" ./src
git clone -b $BRANCH "git@gitea:$USER/$REPO.git" ./src
cd src
git fetch origin $BRANCH
git reset --hard origin/$BRANCH