Use hydra instead of drone
This commit is contained in:
parent
dd691b9796
commit
2a666f2cb2
|
@ -1,9 +0,0 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
type: exec
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
commands:
|
||||
- nix build -L
|
||||
- readlink -f result
|
13
flake.nix
13
flake.nix
|
@ -43,5 +43,18 @@
|
|||
};
|
||||
|
||||
defaultPackage = packages.seminararbeit;
|
||||
|
||||
# My hydra only has x86_64-linux builders
|
||||
hydraJobs =
|
||||
if pkgs.lib.elem system [ "x86_64-linux" ]
|
||||
then {
|
||||
build = packages.seminararbeit;
|
||||
hydra-product = pkgs.runCommandNoCC "seminararbeit-hydra" { } ''
|
||||
install -D ${packages.seminararbeit} $out/seminararbeit.pdf
|
||||
mkdir -p $out/nix-support
|
||||
echo "doc seminararbeit $out/seminararbeit.pdf" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
}
|
||||
else { };
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue