From c2b4279248a8cc2e6aca438848431940279cb74f Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Wed, 24 May 2023 11:29:43 +0200 Subject: [PATCH] [CI] Added kubernetes deployment --- .drone.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yaml b/.drone.yaml index 9e6d2fb..b753dc2 100644 --- a/.drone.yaml +++ b/.drone.yaml @@ -30,3 +30,19 @@ steps: tags: - 'v1' - 'latest' + + +# deploy to kubernetes +- image: 'docker.io/bitnami/kubectl' + name: 'deploy' + pull: 'always' + settings: + mtu: '1440' + + environment: + KUBE_CONFIG: + from_secret: 'drone_kube_config' + + commands: + - 'echo "$KUBE_CONFIG" > $HOME/.kube/config' + - 'kubectl -n simoncor-net rollout restart deployment simoncor-net'