infrastructure/.drone.yml

21 lines
406 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:
2024-01-25 15:14:19 +01:00
- name: kubectl
image: bitnami/kubectl
2024-01-25 13:02:19 +01:00
environment:
KUBE_CONFIG:
from_secret: KUBE_CONFIG
2024-01-25 12:55:44 +01:00
commands:
2024-01-25 15:14:19 +01:00
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
2024-01-25 13:15:55 +01:00
- kubectl kustomize ./kustomization/overlays/staging
2024-01-25 13:53:14 +01:00
- kubectl apply -k ./kustomization/overlays/staging