infrastructure/.drone.yml

21 lines
408 B
YAML

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