Create a pipeline for appluing

This commit is contained in:
Nikolai Rodionov 2023-02-18 18:40:49 +01:00
parent 21fa008ec7
commit 3fe3e4606a

View File

@ -1,10 +1,17 @@
--- ---
# ---------------------------------------------- # ----------------------------------------------
# -- Helmfile apply changes # -- Helmfile diff changes
# ---------------------------------------------- # ----------------------------------------------
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: Apply helmfile changes name: Show helmfile diffs
trigger:
branch:
exclude:
- main
event:
- push
steps: steps:
- name: Diff badhouseplants - name: Diff badhouseplants
@ -26,3 +33,39 @@ steps:
- mkdir $HOME/.kube - mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e eterosoft diff - helmfile -e eterosoft diff
---
# ----------------------------------------------
# -- 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