Skip to content

Instantly share code, notes, and snippets.

@mumoshu mumoshu/prow.md
Last active Jul 2, 2019

Embed
What would you like to do?
helmfile + flagger + istio + chatops demo

Generate a random password for verifying HTTP requests from GitHub to your WebHook endpoint:

openssl rand -hex 20 > /path/to/hook_secret

Decide the GitHub repository named for the demo:

ORG=mumoshu # Replace with your org name!
REPO=$ORG/demo-$(</dev/urandom dd ibs=1 obs=1 count=9 | od -tx1 -An | tr -d ' ')

Register your ngrok endpoint as a GitHub WebHook endpoint of your repo:

GO111MODULE=off go get k8s.io/test-infra/experiment/add-hook

add-hook \
  --hmac-path=/path/to/hook_secret \
  --github-token-path=/path/to/github_token \
  --hook-url https://xxxxxx.ap.ngrok.io/hook \
  --repo $REPO \
  --confirm=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.