From 7c74a1dc7d3948dc43edbe76f3bca4fccb3dd0d4 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 23 Mar 2023 10:36:13 +0100 Subject: [PATCH] [CI] First attempt of an deployment step --- .drone.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.drone.yml b/.drone.yml index ebdad4e..425ca7a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,3 +30,16 @@ steps: tags: - 'v1.0' - 'latest' + + + # deploy to kubernetes + - image: 'bitnami/kubectl' + name: 'deploy' + pull: 'always' + environment: + KUBE_CONFIG: + from_secret: 'kube_config' + + commands: + - 'echo $KUBE_CONFIG >> $HOME/.kube/config' + - 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net '