Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Website update: Wed 22 Jul 2020 21:58:22 BST
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Jul 22, 2020
1 parent 99bd6ad commit 71bf0ad
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions website/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,12 @@ fi

msg="Website update: $(date)"

if [ ! -d "./site-dist" ]; then
echo "Cloning website project"
git clone git@github.com:cf-stratos/website.git site-dist
else
echo "Updating site checkout"
cd site-dist
git fetch
git reset --hard origin/master
git clean -fd
git rebase
cd ..
fi
echo "Cloning web site"
rm -rf ./site-dist
git clone git@github.com:cf-stratos/website.git site-dist

echo "Copying newer site content ..."
rsync -r ./build/ ./site-dist
rsync --delete -r ./build/ ./site-dist

cd site-dist
echo "Adding all files"
Expand Down

0 comments on commit 71bf0ad

Please sign in to comment.