update kubecontext setup
now the drone user should be used to run helmfile
This commit is contained in:
parent
8e19905feb
commit
fdcd2aafdb
@ -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
|
||||
|
||||
---
|
||||
|
@ -1,5 +1,5 @@
|
||||
environments:
|
||||
badhouseplants:
|
||||
kubeContext: allanger@badhouseplants-microk8s
|
||||
kubeContext: badhouseplants
|
||||
etersoft:
|
||||
kubeContext: allanger@etersoft
|
||||
kubeContext: etersoft
|
||||
|
Reference in New Issue
Block a user