项目作者: caitlinelfring

项目描述 :
Demo using Argo workflows and Argo Events to build a GitHub CI tool
高级语言: Makefile
项目地址: git://github.com/caitlinelfring/argo-ci.git
创建时间: 2020-05-01T19:15:24Z
项目社区:https://github.com/caitlinelfring/argo-ci

开源协议:MIT License

下载


argo-ci

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

  1. make init
  2. # expose github gateway
  3. ngrok start -config ngrok.yml --all
  4. # update the github event source with the publicly-exposed url via ngrok
  5. kubectl edit eventsource -n argo-events github-event-source
  6. # edit spec.github.example.webhook.url to match the https endpoint provided by ngrok
  7. # (use the url that's forwarding to 12000)
  8. # also update to whatever repo you want it to control the webhooks for
  9. # 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

  1. # tail gateway logs
  2. kubectl logs -f -n argo-events -l gateway-name=github-gateway --all-containers
  3. # tail sensor logs
  4. kubectl logs -f -l owner-name=github-sensor -n argo-events
  5. # delete all workflows
  6. kubectl delete workflow -n argo-events --all