Skip to content

Commit

Permalink
Drop keep-hash fro docs PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nkammah committed Dec 11, 2023
1 parent e7c7f1b commit 42ef7e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .buildkite/scripts/build_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
git fetch origin pull/$GITHUB_PR_NUMBER/head:$GITHUB_PR_BRANCH &&
git switch $GITHUB_PR_BRANCH &&
cd ..

# For product repos - context in https://github.com/elastic/docs/commit/5b06c2dc1f50208fcf6025eaed6d5c4e81200330
build_args+=" --keep_hash"
build_args+=" --sub_dir $GITHUB_PR_BASE_REPO:$GITHUB_PR_TARGET_BRANCH:./product-repo"
else
# Buildkite PR bot for the `elastic/docs` repo is configured to checkout the PR directly into the workspace
Expand All @@ -72,7 +73,7 @@ fi
TARGET_BRANCH="${GITHUB_PR_BASE_REPO}_bk_${GITHUB_PR_NUMBER}"
PREVIEW_URL="https://${TARGET_BRANCH}.docs-preview.app.elstc.co"

build_cmd="./build_docs --all --keep_hash \
build_cmd="./build_docs --all \
--target_repo [email protected]:elastic/built-docs \
--reference /opt/git-mirrors/ \
--target_branch ${TARGET_BRANCH} \
Expand Down

0 comments on commit 42ef7e0

Please sign in to comment.