diff --git a/.drone.yml b/.drone.yml index 4983051..e984df9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,6 @@ steps: commands: - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config - - kubectl config get-contexts - helmfile -e badhouseplants diff - name: Diff eterosoft @@ -58,7 +57,9 @@ steps: commands: - mkdir $HOME/.kube - echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config + - kubectl create clusterrolebinding $DRONE_COMMIT --clusterrole=cluster-admin --serviceaccount=drone-service:default - helmfile -e badhouseplants apply + - kubectl delete clusterrolebinding $DRONE_COMMIT - name: Apply eterosoft image: ghcr.io/helmfile/helmfile:canary