Deploy as jankremer.de to nimbus (Oracle)
This commit is contained in:
parent
3a35b1dae7
commit
aca3387492
8 changed files with 22 additions and 16 deletions
12
flake.nix
12
flake.nix
|
|
@ -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;
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue