caitlinelfring / argo-ci

Demo using Argo workflows and Argo Events to build a GitHub CI tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

argo-ci

Demo of using Argo Workflows with Argo Events to build a CI tool for Github.

make init

# expose github gateway
ngrok start -config ngrok.yml --all

# update the github event source with the publicly-exposed url via ngrok
kubectl edit eventsource -n argo-events github-event-source
# edit spec.github.example.webhook.url to match the https endpoint provided by ngrok
# (use the url that's forwarding to 12000)
# also update to whatever repo you want it to control the webhooks for

# you will also need to update the URL in `.argo/ci.yaml` for the status check (use the url that's forwarding to 2746)

Go to http://localhost:9000 and add a new bucket named artifacts (default creds)

Troubleshooting

# tail gateway logs
kubectl logs -f -n argo-events -l gateway-name=github-gateway --all-containers

# tail sensor logs
kubectl logs -f -l owner-name=github-sensor -n argo-events

# delete all workflows
kubectl delete workflow -n argo-events --all

About

Demo using Argo workflows and Argo Events to build a GitHub CI tool

License:MIT License


Languages

Language:Makefile 55.2%Language:JavaScript 30.4%Language:HTML 11.8%Language:Dockerfile 2.5%