From 8d970266123672142f99ae15ab23779d1885e94c Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 18 Feb 2023 18:23:42 +0100 Subject: [PATCH] ci: add deploy --- .woodpecker.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ec96e7d..b6a6670 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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]