--- # ---------------------------------------------- # -- Helmfile diff changes # ---------------------------------------------- kind: pipeline type: kubernetes name: Show helmfile diffs environment: HELM_SECRETS_VERSION: v4.3.0 trigger: branch: exclude: - main event: - push steps: - name: Diff badhouseplants image: ghcr.io/helmfile/helmfile:canary environment: KUBECONFIG_CONTENT: from_secret: KUBECONFIG_CONTENT commands: - helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - helmfile -e badhouseplants diff - name: Diff eterosoft image: ghcr.io/helmfile/helmfile:canary environment: KUBECONFIG_CONTENT: from_secret: KUBECONFIG_CONTENT commands: - helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - helmfile -e etersoft diff --- # ---------------------------------------------- # -- Helmfile apply changes # ---------------------------------------------- kind: pipeline type: kubernetes name: Apply helmfile changes environment: HELM_SECRETS_VERSION: v4.3.0 trigger: branch: - main event: - push steps: - name: Apply badhouseplants image: ghcr.io/helmfile/helmfile:canary environment: KUBECONFIG_CONTENT: from_secret: KUBECONFIG_CONTENT commands: - helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - helmfile -e badhouseplants apply - name: Apply eterosoft image: ghcr.io/helmfile/helmfile:canary environment: KUBECONFIG_CONTENT: from_secret: KUBECONFIG_CONTENT commands: - helm plugin install https://github.com/jkroepke/helm-secrets --version $HELM_SECRETS_VERSION - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - helmfile -e etersoft apply