From a07925cb859dc96c69def24b07a66dc8edda2fd4 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 23 Mar 2023 11:50:59 +0100 Subject: [PATCH] [CI] Specify kubectl version --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 22b2353..3f16c34 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,9 @@ kind: 'pipeline' name: 'build' type: 'kubernetes' +environment: + KUBE_CONFIG: + from_secret: 'drone_kube_config' steps: @@ -11,7 +14,7 @@ steps: pull: 'always' commands: - - echo $GITEA_KUBE_CONFIG > $HOME/.kube/config + - echo $KUBE_CONFIG > $HOME/.kube/config.bin + - base64 -d $HOME/.kube/config.bin > $HOME/.kube/config - cat $HOME/.kube/config - - env - kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net