[CI] Specify kubectl version
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Simon Cornet 2023-03-23 11:50:59 +01:00
parent f34938958f
commit a07925cb85

View File

@ -2,6 +2,9 @@
kind: 'pipeline' kind: 'pipeline'
name: 'build' name: 'build'
type: 'kubernetes' type: 'kubernetes'
environment:
KUBE_CONFIG:
from_secret: 'drone_kube_config'
steps: steps:
@ -11,7 +14,7 @@ steps:
pull: 'always' pull: 'always'
commands: commands:
- echo $GITEA_KUBE_CONFIG > $HOME/.kube/config - echo $KUBE_CONFIG > $HOME/.kube/config.bin
- base64 -d $HOME/.kube/config.bin > $HOME/.kube/config
- cat $HOME/.kube/config - cat $HOME/.kube/config
- env
- kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net - kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net