A Buildkite plugin for managing GitHub deployments
Add the following to your pipeline.yml
- this will create a deployment for the current commit in the stage
environment:
steps:
- plugins:
- wellcomecollection/github-deployments#v0.3.0:
ref: ${BUILDKITE_COMMIT}
environment: stage
The ref to create the deployment for as per https://docs.github.com/en/rest/reference/repos#deployments
The environment to create the deployment for as per https://docs.github.com/en/rest/reference/repos#deployments
The ARN of the role for the plugin to assume when fetching secrets
The name of the GitHub Deployment task - useful for distinguishing between different deploy types.
The plugin is written in TypeScript and compiled into binaries with https://github.com/vercel/pkg - when you push a tag, a GitHub Action will create a release for you.
The terraform module in secrets
can be used to create the secrets that the plugin requires (for storing GitHub App config), and provides an output of an IAM policy document for accessing those secrets.