From 85943eeed46e83ed64cce3c3ef9d537e63628a62 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 25 May 2022 18:18:19 +0200 Subject: feat(nixery): Automatically mirror subtree to Github 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 --- tools/nixery/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools') 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 -- cgit 1.4.1