infrastructure/.drone.yml

21 lines
406 B
YAML

kind: pipeline
type: docker
name: kubernetes
trigger:
branch:
- main
event:
- push
steps:
- name: kubectl
image: bitnami/kubectl
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
commands:
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
- kubectl kustomize ./kustomization/overlays/staging
- kubectl apply -k ./kustomization/overlays/staging