Simon Cornet
3472e8df6d
Some checks reported errors
continuous-integration/drone/push Build encountered an error
21 lines
455 B
YAML
21 lines
455 B
YAML
---
|
|
kind: 'pipeline'
|
|
name: 'build'
|
|
type: 'kubernetes'
|
|
environment:
|
|
KUBE_CONFIG:
|
|
from_secret: 'drone_kube_config'
|
|
|
|
steps:
|
|
|
|
# deploy to kubernetes
|
|
- image: 'docker.io/bitnami/kubectl'
|
|
name: 'deploy'
|
|
pull: 'always'
|
|
|
|
commands:
|
|
- 'echo $KUBE_CONFIG > $HOME/.kube/config.bin'
|
|
- 'base64 -d $HOME/.kube/config.bin > $HOME/.kube/config'
|
|
- 'cat $HOME/.kube/config'
|
|
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net'
|