update kubecontext setup

now the drone user should be used to run helmfile
This commit is contained in:
Nikolai Rodionov 2023-07-20 18:19:44 +02:00
parent 8e19905feb
commit fdcd2aafdb
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
2 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ steps:
from_secret: SOPS_AGE_KEY
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
- helmfile -e badhouseplants diff --suppress-secrets
- name: Diff eterosoft
@ -38,7 +38,7 @@ steps:
from_secret: KUBECONFIG_CONTENT
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
- helmfile -e etersoft diff --suppress-secrets
---
@ -69,7 +69,7 @@ steps:
from_secret: SOPS_AGE_KEY
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
- helmfile -e badhouseplants apply --suppress-secrets
- name: Apply eterosoft
@ -81,7 +81,7 @@ steps:
from_secret: SOPS_AGE_KEY
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config
- helmfile -e etersoft apply --suppress-secrets
---

View File

@ -1,5 +1,5 @@
environments:
badhouseplants:
kubeContext: allanger@badhouseplants-microk8s
kubeContext: badhouseplants
etersoft:
kubeContext: allanger@etersoft
kubeContext: etersoft