Skip to content

foxygoat/jcdc

Repository files navigation

JCDC

CI/CD PkgGoDev Slack chat

JCDC is a web server providing a webhook for externally triggered commands, e.g. a deployment triggered by successful GitHub actions workflow. It is intended to be used with kubecfg provided in its image and Kubernetes deployments.

Development

  • Pre-requisites: go, golangci-lint, GNU make
  • Build with make
  • View build options with make help

Deployment

Kubernetes deployment targets for deploying to clusters created with k3sinst are provided in the Makefile where LABEL becomes a subdirectory of deployment/. Run

make deploy-LABEL

and follow instructions.

Retrieve the secret API key with

make show-secret

Test your deployment with

curl https://<HOSTNAME>/version
curl https://<HOSTNAME>/run -d '{"apiKey": <SECRET>, "command": "echo hello world" }'