Skip to content

Instantly share code, notes, and snippets.

@jimangel
Last active June 15, 2021 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimangel/863067cea0d85a60aa3d28f8847cc2df to your computer and use it in GitHub Desktop.
Save jimangel/863067cea0d85a60aa3d28f8847cc2df to your computer and use it in GitHub Desktop.
k8s-docs-pr-botherer

(source: https://github.com/zparnold/k8s-docs-pr-botherer)

Run the app

You'll need to fill in the GITHUB_TOKEN= with a personal access token you generate.

Run with docker:

# The k8s-docs-pr-botherer image is <9 MB
docker run -e GITHUB_TOKEN='YOUR_NEW_GITHUB_TOKEN' quay.io/jimangel/k8s-docs-pr-botherer

Verify it worked by checking the last comment a few PRs with no CLA signed.

Publish your own image(s)

The multi-arch docker image I'm hosting is built using ko using a free quay.io repository.

Export the repo:

# used by ko to build / publish
export KO_DOCKER_REPO="quay.io/jimangel/k8s-docs-pr-botherer"

Before building the images, makes sure docker login works to your repo (and you have write access).

Build the images (defaults to "latest" tag):

# create multi-platform image
ko publish --platform=all --bare .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment