infrastructure/.drone.yml

21 lines
502 B
YAML
Raw Normal View History

2024-01-25 12:55:44 +01:00
kind: pipeline
type: docker
name: kubernetes
trigger:
branch:
2024-01-25 12:57:53 +01:00
- main
2024-01-25 12:55:44 +01:00
event:
- push
steps:
- name: kustomization
image: kustomize/kustomize:v5.0.0
2024-01-25 13:02:19 +01:00
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
2024-01-25 12:55:44 +01:00
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 -