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'