/buildkite-secret-santa-2016

Buildkite’s 2016 Secret Santa Draw, using dynamic build pipelines and Lambda webhook receivers

Primary LanguageHTMLOtherNOASSERTION

Buildkite Secret Santa 2016

Buildkite’s Secret Santa 2016 build pipeline, to find out xmas pressie hints from everyone, and notify each of us with who we’re buying for and what their hint was.

How does it work?

The build pipeline:

The webhook receiver:

  • notifier/index.js - the AWS Lambda function that accepts the job.finished webhook from Buildkite, randomly assigns secret santas, and emails everyone with the hint and delivery address.
  • notifier/job-event-processor.js - extracts the information submitted by everyone from the webhook’s build meta-data.
  • notifier/secret-santa.js - randomly assigns each secret santa based on a determistic seed value for safe re-execution. The seed is read from an environment variable so it can be changed at the last minute, to keep the "secret" in "Secret Santa".

Give it a try

Add to Buildkite

Thanks

Massive props to the brilliant Carla Hackett for the beaut lettering 👌

Screenshots

Buildkite Secret Santa 2016

Buildkite Secret Santa 2016 Unblock Prompt Animation

Buildkite Secret Santa 2016 Email

License

See Licence.md (MIT)