about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-05-25T16·18+0200
committertazjin <tazjin@tvl.su>2022-05-26T08·41+0000
commit85943eeed46e83ed64cce3c3ef9d537e63628a62 (patch)
tree64fe47f2414a01c4c40a7944d337a8b374c67b54
parent74c422d0a0ff9040ae68629c9657f77330ae8727 (diff)
feat(nixery): Automatically mirror subtree to Github r/4121
This exports the `:/tools/nixery` subtree to Github automatically
after merges to `canon`.

Due to the way the project was imported this continues the existing
git history in the external repository.

Change-Id: Ie871c14ad5d8f1019f8be86adecbe9b130ffb01a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5667
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
-rw-r--r--tools/nixery/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/nixery/default.nix b/tools/nixery/default.nix
index 6b053e55dd4e..ea662e19c5ea 100644
--- a/tools/nixery/default.nix
+++ b/tools/nixery/default.nix
@@ -60,6 +60,14 @@ depot.nix.readTree.drvTargets rec {
         --set WEB_DIR "${nixery-book}" \
         --prefix PATH : ${nixery-prepare-image}/bin
     '';
+
+    # Nixery is mirrored to Github at tazjin/nixery; this is
+    # automatically updated from CI for canon builds.
+    passthru.meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush {
+      filter = ":/tools/nixery";
+      remote = "git@github.com:tazjin/nixery.git";
+      ref = "refs/heads/master";
+    };
   };
 
   # Container image containing Nixery and Nix itself. This image can