Try deploying to production from Hydra

This commit is contained in:
Yannik Rödel 2022-07-06 10:48:07 +02:00
parent 703d6296fc
commit 7075280d29

View file

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