Deploy as jankremer.de to nimbus (Oracle)

This commit is contained in:
Jan Kremer 2026-03-26 19:11:05 +01:00
parent 3a35b1dae7
commit aca3387492
No known key found for this signature in database
8 changed files with 22 additions and 16 deletions

View file

@ -42,8 +42,8 @@
default = {
type = "app";
meta = {
description = "Build my blog";
homepage = "https://jankremer.eu";
description = "Build website";
homepage = "https://jankremer.de";
license = nixpkgs.lib.licenses.cc0;
};
program =
@ -55,17 +55,15 @@
deploy = {
type = "app";
meta = {
description = "Deploy to Codeberg";
homepage = "https://kremer.codeberg.page";
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
cd public
git commit --all -m "Deploy"
git push
${pkgs.rsync}/bin/rsync -avP --delete public/ jan@jankremer.de:/var/www/jankremer.de/
'').outPath;
};
});