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