effects: also deploy on staging

This commit is contained in:
Max Headroom 2022-05-25 11:11:41 +02:00
parent 09f3f85a6b
commit f4c1aa53aa

View file

@ -66,7 +66,7 @@
mkDeployEffect = branch: name: host: let
subdomain = host.enterprise.subdomain or "services";
hostname = "${lib.toLower name}.${subdomain}.${meta.domain}";
in effects.runIf (branch == "master") (effects.runNixOS {
in effects.runIf (branch == "master" || branch == "staging") (effects.runNixOS {
requiredSystemFeatures = [ "hci-deploy-agent-nixos" ];
config = self.nixosConfigurations.${name}.config // { outPath = "wtfwtfwtfwtfwtfwtf"; };
secretsMap.ssh = "deploy-ssh";