ci: fix cron deployments
ci/woodpecker/push/deploy Pipeline was successful Details
ci/woodpecker/cron/deploy Pipeline was successful Details

This commit is contained in:
Bruno BELANYI 2023-04-01 21:21:52 +01:00
parent 898ec9b504
commit 4042c99629
1 changed files with 10 additions and 0 deletions

View File

@ -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