jcdc

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

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" }'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL