web01: cachix deploy
This commit is contained in:
parent
53accb3ec0
commit
e42ab1b016
2 changed files with 8 additions and 1 deletions
|
@ -4,11 +4,17 @@
|
|||
withSystem "x86_64-linux" ({ hci-effects, pkgs, self', ... }:
|
||||
let
|
||||
inherit (config.repo) ref;
|
||||
inherit (hci-effects) mkEffect runIf;
|
||||
inherit (hci-effects) mkEffect runCachixDeploy runIf;
|
||||
inherit (pkgs.lib) hasPrefix;
|
||||
in
|
||||
{
|
||||
onPush.default.outputs.effects = {
|
||||
cachix-deploy = runIf (hasPrefix "refs/heads/gh-readonly-queue/master/" ref)
|
||||
(runCachixDeploy {
|
||||
deploy.agents = {
|
||||
web01 = builtins.unsafeDiscardStringContext self.nixosConfigurations.web01.config.system.build.toplevel;
|
||||
};
|
||||
});
|
||||
terraform-deploy = runIf (hasPrefix "refs/heads/gh-readonly-queue/master/" ref)
|
||||
(mkEffect {
|
||||
name = "terraform-deploy";
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
inputs.srvos.nixosModules.mixins-nginx
|
||||
inputs.srvos.nixosModules.hardware-hetzner-cloud
|
||||
inputs.self.nixosModules.common
|
||||
inputs.self.nixosModules.cachix-deploy
|
||||
./samba.nix
|
||||
./postgresql.nix
|
||||
./pgbackrest.nix
|
||||
|
|
Loading…
Add table
Reference in a new issue