ci: add deploy

This commit is contained in:
nyyu 2023-02-18 18:23:42 +01:00
parent 5d31946acb
commit 8d97026612

View file

@ -13,7 +13,15 @@ pipeline:
build_args: VERSION=dev
when:
branch: main
event:
- push
- cron
- tag
event: [push, cron, tag]
prod:
image: dtzar/helm-kubectl:3.10.3
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]