calling it a night
This commit is contained in:
@@ -28,7 +28,7 @@ def handle_request(rq: DeployerRequest):
|
|||||||
DEPLOYERDIR=DEPLOYERDIR,
|
DEPLOYERDIR=DEPLOYERDIR,
|
||||||
USER=rq.user,
|
USER=rq.user,
|
||||||
REPO=rq.repo,
|
REPO=rq.repo,
|
||||||
BRANCH=rq.branch
|
BRANCH=rq.branch,
|
||||||
COMMIT_HASH=rq.commit_hash,
|
COMMIT_HASH=rq.commit_hash,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ deploydir=$DEPLOYERDIR/$REPO/$BRANCH
|
|||||||
mkdir -p $deploydir/src
|
mkdir -p $deploydir/src
|
||||||
cd $deploydir
|
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
|
cd src
|
||||||
git fetch origin $BRANCH
|
git fetch origin $BRANCH
|
||||||
git reset --hard origin/$BRANCH
|
git reset --hard origin/$BRANCH
|
||||||
|
|||||||
Reference in New Issue
Block a user