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 from_secret: SOPS_AGE_KEY
commands: commands:
- mkdir $HOME/.kube - 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 - helmfile -e badhouseplants diff --suppress-secrets
- name: Diff eterosoft - name: Diff eterosoft
@ -38,7 +38,7 @@ steps:
from_secret: KUBECONFIG_CONTENT from_secret: KUBECONFIG_CONTENT
commands: commands:
- mkdir $HOME/.kube - 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 - helmfile -e etersoft diff --suppress-secrets
--- ---
@ -69,7 +69,7 @@ steps:
from_secret: SOPS_AGE_KEY from_secret: SOPS_AGE_KEY
commands: commands:
- mkdir $HOME/.kube - 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 - helmfile -e badhouseplants apply --suppress-secrets
- name: Apply eterosoft - name: Apply eterosoft
@ -81,7 +81,7 @@ steps:
from_secret: SOPS_AGE_KEY from_secret: SOPS_AGE_KEY
commands: commands:
- mkdir $HOME/.kube - 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 - helmfile -e etersoft apply --suppress-secrets
--- ---

View File

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