ci: add deploy
This commit is contained in:
parent
5d31946acb
commit
8d97026612
1 changed files with 12 additions and 4 deletions
|
@ -13,7 +13,15 @@ pipeline:
|
||||||
build_args: VERSION=dev
|
build_args: VERSION=dev
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
event:
|
event: [push, cron, tag]
|
||||||
- push
|
prod:
|
||||||
- cron
|
image: dtzar/helm-kubectl:3.10.3
|
||||||
- tag
|
commands:
|
||||||
|
- HOME=/root
|
||||||
|
- mkdir -p /root/.kube
|
||||||
|
- echo "$KUBE_CONFIG" > /root/.kube/config
|
||||||
|
- kubectl rollout restart deployment/pyload
|
||||||
|
secrets: [kube_config]
|
||||||
|
when:
|
||||||
|
branch: main
|
||||||
|
event: [deployment, cron]
|
||||||
|
|
Loading…
Add table
Reference in a new issue