parent
b12087238b
commit
3cbded850d
4 changed files with 30 additions and 23 deletions
19
flake.nix
19
flake.nix
|
|
@ -36,6 +36,11 @@
|
|||
|
||||
checks = eachSystem (pkgs: {
|
||||
formatting = treefmtEval.${pkgs.system}.config.build.check self;
|
||||
zola = pkgs.runCommand "zola-check" { buildInputs = [ pkgs.zola ]; } ''
|
||||
cp -r ${self}/. .
|
||||
zola check
|
||||
touch $out
|
||||
'';
|
||||
});
|
||||
|
||||
apps = eachSystem (pkgs: {
|
||||
|
|
@ -52,20 +57,6 @@
|
|||
${pkgs.zola}/bin/zola build --minify
|
||||
'').outPath;
|
||||
};
|
||||
deploy = {
|
||||
type = "app";
|
||||
meta = {
|
||||
description = "Deploy to nimbus (Oracle)";
|
||||
homepage = "https://jankremer.de";
|
||||
license = nixpkgs.lib.licenses.cc0;
|
||||
};
|
||||
program =
|
||||
(pkgs.writeShellScript "deploy-website" ''
|
||||
set -e
|
||||
${pkgs.zola}/bin/zola build --minify
|
||||
${pkgs.rsync}/bin/rsync -avP --delete public/ jan@jankremer.de:/var/www/jankremer.de/
|
||||
'').outPath;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue