Skip to content

Commit

Permalink
More ssh trying
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Dikhoff committed Oct 25, 2024
1 parent 66f4354 commit ceb7c7b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ SSH_COMMAND="ssh -i $WORK_DIR/id_priv"
echo $SSH_COMMAND
git config --global core.sshcommand $SSH_COMMAND
echo "Cloning $LIVE_REPO $REPO_DIR"
git config --get core.sshcommand
git -c core.sshCommand="$SSH_COMMAND" clone $LIVE_REPO $REPO_DIR 2>&1 | tee -a $REPORT_FILE
git config --get core.sshcommand
git config --list
git clone $LIVE_REPO $REPO_DIR 2>&1 | tee -a $REPORT_FILE
git config --list
echo "Checking out $GIT_LIVE_BRANCH"
cd $REPO_DIR
git checkout $GIT_LIVE_BRANCH 2>&1 | tee -a ../$REPORT_FILE
Expand All @@ -63,14 +63,13 @@ mkdir -p $BUILD_DIR
echo "cp -r ../$SPHINX_DIR/* $BUILD_DIR" 2>&1 | tee -a ../$REPORT_FILE
cp -r ../$SPHINX_DIR/* $BUILD_DIR 2>&1 | tee -a ../$REPORT_FILE

git config --get core.sshcommand
git config --list
echo "Setting credentials"
git config user.email "[email protected]"
git config user.name "Cloudflare build worker"
git config core.pager cat
git config --list

git config --get core.sshcommand
echo "Commit and push to $GIT_LIVE_BRANCH, with message $GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE
git add . 2>&1 | tee -a ../$REPORT_FILE
git commit -m "$GIT_COMMIT_MESSAGE" 2>&1 | tee -a ../$REPORT_FILE
Expand Down

0 comments on commit ceb7c7b

Please sign in to comment.