2022-11-01 13:03:03 +01:00
|
|
|
---
|
|
|
|
kind: 'pipeline'
|
|
|
|
name: 'build'
|
2023-03-22 17:22:48 +01:00
|
|
|
type: 'kubernetes'
|
2022-11-01 13:03:03 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2023-03-23 10:44:10 +01:00
|
|
|
# deploy to kubernetes
|
2023-03-23 11:44:32 +01:00
|
|
|
- image: 'docker.io/bitnami/kubectl'
|
2023-03-23 10:44:10 +01:00
|
|
|
name: 'deploy'
|
|
|
|
pull: 'always'
|
2023-03-23 11:52:22 +01:00
|
|
|
environment:
|
|
|
|
KUBE_CONFIG:
|
|
|
|
from_secret: 'drone_kube_config'
|
2023-03-23 11:28:25 +01:00
|
|
|
|
2023-03-23 10:44:10 +01:00
|
|
|
commands:
|
2023-03-23 11:51:53 +01:00
|
|
|
- 'echo $KUBE_CONFIG > $HOME/.kube/config.bin'
|
2023-03-23 11:53:07 +01:00
|
|
|
- 'cat $HOME/.kube/config.bin'
|
2023-03-23 11:51:53 +01:00
|
|
|
- 'base64 -d $HOME/.kube/config.bin > $HOME/.kube/config'
|
|
|
|
- 'cat $HOME/.kube/config'
|
|
|
|
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net'
|