[ci] add rollout deployment using k9s.siempie.internal
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
ca4e3dfafb
commit
20ec7d1091
49
.drone.yaml
49
.drone.yaml
@ -38,22 +38,49 @@ steps:
|
|||||||
- 'latest'
|
- 'latest'
|
||||||
|
|
||||||
|
|
||||||
# deploy to kubernetes
|
# kubernetes deployment
|
||||||
- image: 'docker.io/bitnami/kubectl'
|
---
|
||||||
name: 'deploy'
|
kind: 'pipeline'
|
||||||
pull: 'always'
|
name: 'build'
|
||||||
settings:
|
type: 'kubernetes'
|
||||||
mtu: '1440'
|
|
||||||
|
depends_on:
|
||||||
|
- 'publish'
|
||||||
|
|
||||||
|
# disable clone
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
# deployment step
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# kubernetes deployment
|
||||||
|
- name: 'kubernetes deployment'
|
||||||
|
image: 'docker.io/appleboy/drone-ssh:1'
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- 'master'
|
- 'master'
|
||||||
event:
|
event:
|
||||||
- 'push'
|
- 'push'
|
||||||
|
|
||||||
environment:
|
settings:
|
||||||
KUBE_CONFIG:
|
|
||||||
from_secret: 'drone_kube_config_kaas'
|
|
||||||
|
|
||||||
commands:
|
# bastion
|
||||||
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
|
proxy_host: 'siempie.com'
|
||||||
|
proxy_port: '22'
|
||||||
|
proxy_user:
|
||||||
|
from_secret: 'drone_user'
|
||||||
|
proxy_key:
|
||||||
|
from_secret: 'drone_ssh_key'
|
||||||
|
|
||||||
|
# k9s
|
||||||
|
host: 'k9s.siempie.internal'
|
||||||
|
port: '22'
|
||||||
|
user:
|
||||||
|
from_secret: 'drone_user'
|
||||||
|
key:
|
||||||
|
from_secret: 'drone_ssh_key'
|
||||||
|
script:
|
||||||
|
|
||||||
|
# kubernetes deployment
|
||||||
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net'
|
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net'
|
||||||
|
Loading…
Reference in New Issue
Block a user