To test this bootstrap wrapper:
git clone https://gist.github.com/43de11658602b3f7c0e1921fcea7ac5f.git optimized-phabricator-bootstrap
cd optimized-phabricator-bootstrap
docker run \
--rm \
-it \
-v "$(pwd)/custom-bootstrap:/buildkite/custom-bootstrap" \
-e BUILDKITE_BOOTSTRAP_SCRIPT_PATH=/buildkite/custom-bootstrap \
-e BUILDKITE_AGENT_TOKEN=xxx \
buildkite/agent:3 start
Run a build for the branch refs/heads/master
, and in the "Preparing build directory" section you should see:
# Fetch and checkout custom refspec
git fetch -v origin refs/heads/master