Forked and built with the latest kubectl.
This Drone plugin allows you to use kubectl without messing around with the authentication.
# drone 1.0 syntax
kind: pipeline
name: deploy
steps:
- name: deploy
image: dxas90/drone-kubectl
environment:
KUBE_CONFIG:
from_secret: kube_config
commands:
- /bin/kubectl create -f job_foo.yaml
- /bin/kubectl wait --for=condition=complete -f job_foo.yamlFirst, you need to have a service account with proper privileges and service-account-token:
cat ~/.kube/config | base64 -w0 > config-serializedInspired by: