From 1e43695e0622c56d3537344fff43a1c0767bbbf9 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Thu, 9 Jan 2025 00:33:03 -0500 Subject: [PATCH] calling it a night --- deploy.py | 2 +- deploy.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy.py b/deploy.py index 5973c25..ba02c6d 100644 --- a/deploy.py +++ b/deploy.py @@ -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, ), ) diff --git a/deploy.sh b/deploy.sh index d2601dd..52d7439 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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