-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to effect for darwin ssh deploy
- Loading branch information
Showing
3 changed files
with
37 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ self, withSystem, ... }: | ||
{ | ||
herculesCI = { config, ... }: | ||
withSystem "x86_64-linux" ({ hci-effects, lib, ... }: | ||
{ | ||
onPush.default.outputs.effects = { | ||
darwin = hci-effects.runIf (lib.hasPrefix "refs/heads/gh-readonly-queue/master/" config.repo.ref) | ||
(hci-effects.runNixDarwin | ||
{ | ||
ssh.destination = "[email protected]"; | ||
configuration = self.darwinConfigurations.darwin02; | ||
buildOnDestination = true; | ||
secretsMap.ssh-deployment = "ssh-deployment"; | ||
userSetupScript = '' | ||
writeSSHKey ssh-deployment | ||
cat >>~/.ssh/known_hosts <<EOF | ||
darwin02.nix-community.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICJqwpMUEl1/iwrBakeDb1rlheXlE5mfDLICVz8w6yi6 | ||
EOF | ||
''; | ||
} | ||
{ | ||
ssh.destination = "[email protected]"; | ||
configuration = self.darwinConfigurations.darwin03; | ||
buildOnDestination = true; | ||
secretsMap.ssh-deployment = "ssh-deployment"; | ||
userSetupScript = '' | ||
writeSSHKey ssh-deployment | ||
cat >>~/.ssh/known_hosts <<EOF | ||
darwin03.nix-community.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKX7W1ztzAtVXT+NBMITU+JLXcIE5HTEOd7Q3fQNu80S | ||
EOF | ||
''; | ||
}); | ||
}; | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters