Coder Social home page Coder Social logo

kjenney / argo-ci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caitlinelfring/argo-ci

0.0 1.0 0.0 76 KB

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

License: MIT License

Makefile 34.71% Dockerfile 1.61% JavaScript 19.24% Handlebars 7.45% Shell 36.99%

argo-ci's Introduction

argo-ci

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

Prerequisites

  • Helm3 Installed
  • Helm repo: helm repo add stable https://kubernetes-charts.storage.googleapis.com/

Secrets

Secrets are stored in .env. See sample.env.

Getting Started

# get everything up and running
make init

# set DockerHub secrets for pushing images
make dockerhub

# expose github gateway and argo workflows with minikube
./ngrok-generate.sh

# 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)

Create bucket on Minio

Login to the Minio UI using a web browser (port 9000) after obtaining the external IP using kubectl.

kubectl get service argo-artifacts -n argo-events

On Minikube:

minikube service --url argo-artifacts -n argo-events

NOTE: When minio is installed via Helm, it uses the following hard-wired default credentials, which you will use to login to the UI:

AccessKey: AKIAIOSFODNN7EXAMPLE
SecretKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

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

argo-ci's People

Contributors

kjenney avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.