Wiring buildkite pipelines to github repos with a single script
- Creates a pipeline in Builkite that reads for steps on the repo, build PR from 3rd parties and publish commit status;
- Adds the right Buildkite webhook on the github repo.
- the name of the pipeline will be the name of the repo;
- the
GITHUB_TOKEN
andBUILDKITE_TOKEN
have the right permissions; - you have
curl
andjq
installed.
$ export GITHUB_TOKEN=xyz
$ export BUILDKITE_TOKEN=xpto
$
$ ./setup-pipeline.sh org-or-user repo