refactor(views): move view export configuration to //views

Change-Id: I064b996fd52134b7e83541ea1190774c51a8ba30
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8359
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2023-03-28 10:40:04 +03:00 committed by clbot
parent b340b8a57f
commit 08bf03a3d8
2 changed files with 21 additions and 11 deletions

View file

@ -86,15 +86,5 @@ in
'';
};
export = (pkgs.runCommandLocal "export-tvix" { } ''
echo "carrier for repo export extra-step" > $out
'').overrideAttrs (_: {
meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush {
filter = ":workspace=views/tvix";
remote = "git@github.com:tvlfyi/tvix.git";
ref = "refs/heads/canon";
};
});
meta.ci.targets = [ "shell" "export" "rust-docs" ];
meta.ci.targets = [ "shell" "rust-docs" ];
}

20
views/default.nix Normal file
View file

@ -0,0 +1,20 @@
# Export configuration for the views.
{ depot, pkgs, ... }:
let
export-tvix = depot.tools.releases.filteredGitPush {
filter = ":workspace=views/tvix";
remote = "git@github.com:tvlfyi/tvix.git";
ref = "refs/heads/canon";
};
in
(pkgs.runCommandLocal "export-views" { }
''
echo "no-op carrier target for repo export steps" | tee $out
'').overrideAttrs
(_: {
meta.ci.extraSteps = {
inherit export-tvix;
};
})