Skip to content

Commit

Permalink
[ci] ensure (again) clean checkout in docs builds (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
schallert committed Apr 10, 2019
1 parent 08cbbef commit 2422428
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .buildkite/hooks/post-checkout
@@ -1,5 +1,6 @@
#!/bin/bash

set -exo pipefail
set -eo pipefail

git clean -df
echo "--- :git: cleaning checkout"
git clean -dffx
5 changes: 3 additions & 2 deletions .buildkite/hooks/pre-exit
@@ -1,5 +1,6 @@
#!/bin/bash

set -exo pipefail
set -eo pipefail

git clean -df
echo "--- :git: cleaning checkout"
git clean -dffx
6 changes: 4 additions & 2 deletions .buildkite/scripts/docs_push.sh
Expand Up @@ -40,10 +40,10 @@ else
fi

# Also build & push the operator's docs.
git clean -df
git clean -dffx
git checkout -t origin/operator
git pull

rm -rf m3db.io/*
git clone git@github.com:m3db/m3db-operator.git

(
Expand All @@ -56,7 +56,9 @@ if diff -qr m3db-operator/site m3db.io; then
exit 0
fi

rm -rf m3db.io/*
cp -r m3db-operator/site/* m3db.io
git clean -dffx
git add m3db.io
git commit -m "Operator docs update $(date)"
git push

0 comments on commit 2422428

Please sign in to comment.