infrastructure/.drone.yml

22 lines
489 B
YAML

kind: pipeline
type: docker
name: kubernetes
trigger:
branch:
- master
event:
- push
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
steps:
- name: kustomization
image: bitnami/kubectl:latest
commands:
- curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
- kustomize build ./kustomization/overlays/staging | kubectl apply -f -