diff --git a/build.sh b/build.sh index d2c05fcccab1..d1f2731886d4 100755 --- a/build.sh +++ b/build.sh @@ -53,7 +53,7 @@ mkdir -p $SPHINX_DIR echo "DUMMY FILE FOR TESTING: $DATE" > $SPHINX_DIR/test.html echo "Cloning $LIVE_REPO $REPO_DIR" -git clone -vvv $LIVE_REPO $REPO_DIR +git clone $LIVE_REPO $REPO_DIR cd $REPO_DIR echo "Checking out $GIT_LIVE_BRANCH" @@ -63,14 +63,14 @@ if [ -n "$CF_PAGES" ] then echo "We are on Cloudflare Pages. Setting custom ssh key and method" mkdir ~/.ssh - echo "$BUILD_SSH_KEY" > ~/.ssh/id_cwapb - echo "$BUILD_SSH_KEY_PUB" > ~/.ssh/id_cwapb.pub - SSH_COMMAND="ssh -vvv -i ~/.ssh/id_cwapb" + echo "$BUILD_SSH_KEY" > ~/.ssh/id_cloudflare + echo "$BUILD_SSH_KEY_PUB" > ~/.ssh/id_cloudflare.pub + SSH_COMMAND="ssh -vvv -i ~/.ssh/id_cloudflare" echo $SSH_COMMAND echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts - chmod 0600 ~/.ssh/id_cwapb - chmod 0600 ~/.ssh/id_cwapb.pub + chmod 0600 ~/.ssh/id_cloudflare + chmod 0600 ~/.ssh/id_cloudflare.pub chmod 0644 ~/.ssh/known_hosts chmod 0755 ~/.ssh @@ -85,17 +85,16 @@ then git remote set-url origin git@github.com:Redot-Engine/redot-docs-live.git echo "Setting credentials" - git config --global user.email "cloudflare-workers-and-pages[bot]@cloudflare.com" - git config --global user.name "cloudflare-workers-and-pages[bot]" - git config --global credential.username "cloudflare-workers-and-pages[bot]" + git config --global user.email "noreply_pages_bot@cloudflare.com" + git config --global user.name "Cloudflare build worker" fi echo "#########################" cat .git/config echo "#########################" ls -la ~/.ssh -cat ~/.ssh/id_cwapb.pub +cat ~/.ssh/id_cloudflare.pub cat ~/.ssh/known_hosts -ssh -T -i ~/.ssh/id_cwapb git@ssh.github.com +ssh -T -i ~/.ssh/id_cloudflare git@ssh.github.com echo "#########################" git config --global core.pager cat git config --list