ci: fix cron deployments
This commit is contained in:
parent
898ec9b504
commit
4042c99629
|
@ -1,3 +1,6 @@
|
||||||
|
variables:
|
||||||
|
- &all_events ["push", "cron", "deployment", "manual"]
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
type: exec
|
type: exec
|
||||||
|
|
||||||
|
@ -21,12 +24,16 @@ pipeline:
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
- nix flake check
|
- nix flake check
|
||||||
|
when:
|
||||||
|
event: *all_events
|
||||||
|
|
||||||
- name: build (${TYPE})
|
- name: build (${TYPE})
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
# If dev, include drafts and future articles, change base URL
|
# If dev, include drafts and future articles, change base URL
|
||||||
- nix develop -c make ${MAKE_TARGET}
|
- nix develop -c make ${MAKE_TARGET}
|
||||||
|
when:
|
||||||
|
event: *all_events
|
||||||
|
|
||||||
- name: deploy (${TYPE})
|
- name: deploy (${TYPE})
|
||||||
image: bash
|
image: bash
|
||||||
|
@ -46,6 +53,8 @@ pipeline:
|
||||||
target: sync_host
|
target: sync_host
|
||||||
commands:
|
commands:
|
||||||
- "nix run github:ambroisie/nix-config#drone-rsync"
|
- "nix run github:ambroisie/nix-config#drone-rsync"
|
||||||
|
when:
|
||||||
|
event: *all_events
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: bash
|
image: bash
|
||||||
|
@ -61,6 +70,7 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- nix run github:ambroisie/matrix-notifier
|
- nix run github:ambroisie/matrix-notifier
|
||||||
when:
|
when:
|
||||||
|
event: *all_events
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
|
Loading…
Reference in a new issue