From 4042c99629f96e985a77b87d3b0d97b5f431a63c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 1 Apr 2023 21:21:52 +0100 Subject: [PATCH] ci: fix cron deployments --- .woodpecker/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 2a6ddb0..d20b541 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -1,3 +1,6 @@ +variables: +- &all_events ["push", "cron", "deployment", "manual"] + labels: type: exec @@ -21,12 +24,16 @@ pipeline: image: bash commands: - nix flake check + when: + event: *all_events - name: build (${TYPE}) image: bash commands: # If dev, include drafts and future articles, change base URL - nix develop -c make ${MAKE_TARGET} + when: + event: *all_events - name: deploy (${TYPE}) image: bash @@ -46,6 +53,8 @@ pipeline: target: sync_host commands: - "nix run github:ambroisie/nix-config#drone-rsync" + when: + event: *all_events - name: notify image: bash @@ -61,6 +70,7 @@ pipeline: commands: - nix run github:ambroisie/matrix-notifier when: + event: *all_events status: - failure - success