mangelajo / pr-brancher-webhook

A webhook that maintains branchers on github based on pull request versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pr-brancher-webhook

setup

export NS=pr-brancher-webhook
kubectl create namespace $NS
# create a bot account with permission to your repos, and create a token in your bot account: https://github.com/settings/tokens
kubectl create -n $NS secret generic pr-brancher-secrets --from-file=ssh_pk=./id_rsa --from-literal=githubToken=$GITHUB_TOKEN
kubectl apply -n $NS -f deployment/role.yml
kubectl apply -n $NS -f deployment/deployment.yaml
kubectl apply -n $NS -f deployment/service.yml

setup with https/letsencrypt

kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.12.0/cert-manager.yaml
kubectl apply -f deployment/letsencrypt-prod-issuer.yaml # you may need to edit the class in the yaml based on your ingress

update image

kubectl rollout restart deployment/pr-brancher

About

A webhook that maintains branchers on github based on pull request versions


Languages

Language:Go 94.8%Language:Shell 3.2%Language:Dockerfile 2.0%