about summary refs log tree commit diff
path: root/.drone.yml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-07 07:57:15 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-07 07:57:15 -0800
commit713e1f32d13406d5415dc2ae3b201a8fa5508022 (patch)
tree606257e86ff64408286a2862a7958ebc84d8061a /.drone.yml
parentfix(layout): link to my instance of gitea instead of GitHub (diff)
downloadfcuny.net-713e1f32d13406d5415dc2ae3b201a8fa5508022.tar.gz
ci: add cron to update flakes
Diffstat (limited to '')
-rw-r--r--.drone.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 076cfa3..e2d1b4c 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -15,3 +15,17 @@ steps:
         from_secret: FLY_API_TOKEN
     commands:
       - nix run .#deploy
+---
+kind: pipeline
+type: docker
+name: daily-backup
+trigger:
+  event:
+    - cron
+
+steps:
+  - name: update flakes
+    image: nixpkgs/nix-flakes:nixos-22.05
+    commands:
+      - nix flake update --commit-lock-file
+      - nix develop -c git push origin --all