2020-08-21 12:12:57 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pipeline.steps = [
|
|
|
|
{
|
2020-08-21 12:25:16 +02:00
|
|
|
command = ''
|
|
|
|
echo $(pwd)
|
|
|
|
git show HEAD
|
|
|
|
git log -n 1
|
|
|
|
${pkgs.git-secrets}/bin/git-secrets --scan-history
|
|
|
|
'';
|
2020-08-21 12:12:57 +02:00
|
|
|
label = ":briefcase: Briefcase [lint]";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace";
|
|
|
|
label = ":briefcase: Briefcase [build]";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
in pkgs.writeText "briefcase.yaml" (builtins.toJSON pipeline)
|