feat: Add cdh to drone for badhouseplants

This commit is contained in:
Nikolai Rodionov 2023-03-22 21:34:04 +01:00
parent a6f49a084f
commit 63b0c7b8bb

View File

@ -14,7 +14,7 @@ trigger:
- push
steps:
- name: Diff badhouseplants
- name: Diff badhouseplants
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
@ -26,7 +26,7 @@ steps:
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants diff --suppress-secrets
- name: Diff eterosoft
- name: Diff eterosoft
image: ghcr.io/helmfile/helmfile:canary
environment:
SOPS_AGE_KEY:
@ -53,7 +53,7 @@ trigger:
- push
steps:
- name: Apply badhouseplants
- name: Apply badhouseplants
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
@ -65,7 +65,7 @@ steps:
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants apply --suppress-secrets
- name: Apply eterosoft
- name: Apply eterosoft
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
@ -77,3 +77,20 @@ steps:
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e etersoft apply --suppress-secrets
---
# ----------------------------------------------
# -- Check da helm pipeline
# ----------------------------------------------
kind: pipeline
type: kubernetes
name: Check helmfiles
#trigger:
# event:
# - cron
# cron:
# - weekly
steps:
- name: Check badhouseplants
image: ghcr.io/allanger/check-da-helm-helmfile:stable
commands:
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplats -o