Skip to content

Instantly share code, notes, and snippets.


Tim Lucas toolmantim

View GitHub Profile
View Dockerfile.puppeteer
# A minimal Docker image with Node and Puppeteer
# Initially based upon:
FROM node:16.15.1-buster-slim@sha256:3c8acd4934617f60dad7e4cc941faa064aa5a14da437dc156bdcad9d4a67bc4e as puppeteer
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates procps libxss1 git \
&& wget -q -O - | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google.list' \
View buildkite.yml
View github-graphql.js
fetch('', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.GITHUB_API_TOKEN}`
body: JSON.stringify({ query: query() })
.then((res) => res.json())
.then((data) => {
View pipeline.yml
- command: ls

Firstly, build the Docker image:

curl | docker build -t bk -

Then try to use it in a project that has a buildkite pipeline.yml file:

docker run -it --rm -v "$(PWD):/app" bk run local
toolmantim /
Created November 5, 2018 05:04
An example of dynamically adding a trigger step during a running Buildkite build
set -euo pipefail
cat << YML | buildkite-agent pipeline upload
- trigger: "other-pipeline"
async: true
toolmantim / buildkite.yml.schema.json
Last active October 21, 2018 23:59
JSON Schema for Buildkite Pipeline files
View buildkite.yml.schema.json
"title": "JSON schema for Buildkite pipeline configuration files",
"$schema": "",
"definitions": {
"label": {
"type": "string",
"description": "The label that will be displayed in the pipeline visualisation in Buildkite. Supports emoji.",
"examples": [ ":docker: Build" ]
"branches": {
toolmantim / pipeline-2.yml
Last active June 17, 2018 11:54
Checking a prometheus
View pipeline-2.yml
- label: "🔍"
command: 'docker run --rm --entrypoint sh -v "$PWD/prometheus.yml:/src/prometheus.yml" prom/prometheus promtool check config /src/prometheus.yml'
toolmantim / buildkite-bootstrap-wrapper-build-log-output
Last active June 11, 2018 02:36
An example custom Buildkite Agent bootstrap wrapper that logs the output of all build jobs.
View buildkite-bootstrap-wrapper-build-log-output
set -euo pipefail
# A custom bootstrap wrapper that logs the output of all build jobs.
# To use this file, either set the env variable before starting the agent:
# or the agent configuration key:

Usage example:

$ docker-compose build
$ docker run -it --rm -v /some-local-plugin-path:/plugin:ro buildkite/plugin-example-validator /plugin/schema.yml /plugin/
🙌 Readme examples validate against the schema