Files
openbb-invest-api/.drone.yml
Yaojia Wang 26cd716590
All checks were successful
continuous-integration/drone/push Build is passing
ci: simplify deploy by using kubectl rollout restart after build
2026-03-18 23:34:54 +01:00

30 lines
646 B
YAML

kind: pipeline
type: kubernetes
name: build-and-push
trigger:
branch:
- main
- develop
event:
- push
- custom
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor:debug
commands:
- >
/kaniko/executor
--context=/drone/src
--dockerfile=Dockerfile
--destination=192.168.68.11:30500/invest-api:${DRONE_COMMIT_SHA:0:8}
--destination=192.168.68.11:30500/invest-api:latest
--insecure
--skip-tls-verify
- name: restart-deployment
image: bitnami/kubectl:latest
commands:
- kubectl rollout restart deploy/invest-api -n invest-api