This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
k8s-cluster-config/.drone.yml

72 lines
1.6 KiB
YAML
Raw Normal View History

2023-02-18 17:23:01 +00:00
---
# ----------------------------------------------
2023-02-18 17:40:49 +00:00
# -- Helmfile diff changes
2023-02-18 17:23:01 +00:00
# ----------------------------------------------
kind: pipeline
type: kubernetes
2023-02-18 17:40:49 +00:00
name: Show helmfile diffs
trigger:
branch:
exclude:
- main
event:
- push
2023-02-18 17:23:01 +00:00
steps:
2023-02-18 17:38:56 +00:00
- name: Diff badhouseplants
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants diff
- name: Diff eterosoft
2023-02-18 17:28:38 +00:00
image: ghcr.io/helmfile/helmfile:canary
2023-02-18 17:23:01 +00:00
environment:
2023-02-18 17:32:59 +00:00
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
2023-02-18 17:23:01 +00:00
commands:
2023-02-18 17:28:38 +00:00
- mkdir $HOME/.kube
2023-02-18 17:32:59 +00:00
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
2023-02-18 17:38:56 +00:00
- helmfile -e eterosoft diff
2023-02-18 17:40:49 +00:00
---
# ----------------------------------------------
# -- Helmfile apply changes
# ----------------------------------------------
kind: pipeline
type: kubernetes
name: Apply helmfile changes
trigger:
branch:
- main
event:
- push
steps:
- name: Diff badhouseplants
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants apply
- name: Diff eterosoft
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e eterosoft apply