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
|
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
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
environments:
|
environments:
|
||||||
badhouseplants:
|
badhouseplants:
|
||||||
kubeContext: allanger@badhouseplants-microk8s
|
kubeContext: badhouseplants
|
||||||
etersoft:
|
etersoft:
|
||||||
kubeContext: allanger@etersoft
|
kubeContext: etersoft
|
||||||
|
Reference in New Issue
Block a user