diff --git a/flake.nix b/flake.nix index 985fcfd..0af61ed 100644 --- a/flake.nix +++ b/flake.nix @@ -122,6 +122,10 @@ echo "" ''; }; + + deployToProduction = pkgs.writeShellScript '' + ${pkgs.curl}/bin/curl 62.146.78.173:9337/hooks/angestoepselt_homepage + ''; }; defaultPackage = packages.angestoepseltSite; @@ -139,6 +143,10 @@ ln -s ${containerFile} $out/angestoepselt-site.tar.gz echo "file oci $out/angestoepselt-site.tar.gz" > $out/nix-support/hydra-build-products ''; + + runCommandHooks = { + inherit (base.packages.x86_64-linux) deployToProduction; + }; }; }); }