mirror of
https://github.com/danielgormly/drone-plugin-kube.git
synced 2026-06-04 18:23:48 +08:00
7dc06ffbe17ec0a036b91d472bc2c6e854593b69
kubano
A simple Drone plugin for managing Kubernetes deployments.
Usage
Add the following build step to your drone pipeline definition.
drone.yaml partial example
- name:
image: danielgormly/kubano
settings:
template: deployment.yaml
Settings
- template: path to deployment file from repo root e.g.
deploy/deployment.yaml, etc
deployment templates
Deployment config files are first interpreted by raymond (handlebarsjs equivalent). Use {{variable}} to add interpolated expressions e.g.
deployment.yaml partial example
spec:
containers:
- name: nginx
image: 10.0.0.24:443/danielgormly:{{git-repo}}.{{git-branch}}
Development
- Kubernetes client not yet supported by dep, so we are using
brew install glide. - Update dependencies with brew
glide update --strip-vendor - Creating a Drone plugin in Go
Acknowledgements
- Heavily referenced vallard/drone-kube.
Description
Languages
Go
90.7%
Shell
8.9%
Dockerfile
0.4%