Skip to content

Commit

Permalink
Change name
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Dikhoff committed Oct 25, 2024
1 parent f05b3a9 commit c20592e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand All @@ -85,17 +85,16 @@ then
git remote set-url origin [email protected]: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 "[email protected]"
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 [email protected]
ssh -T -i ~/.ssh/id_cloudflare [email protected]
echo "#########################"
git config --global core.pager cat
git config --list
Expand Down

0 comments on commit c20592e

Please sign in to comment.