-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-Implement CI for the repo, plus some housekeeping
This uses deployments to keep runners only using specific credentials for staging and production. Proper handling of staging so people can test deploy shit will come later. This also uses DHCP on wiggle, because we're not using a public IP for it any longer. Rotates the key colmena_ci uses too, plus adds a staging version of the module for uh, staging. Finally, removes frankfurt 2 and 3, plus fixes the pkgs-unstable reference on the arm nodes to use arm.
- Loading branch information
Showing
7 changed files
with
109 additions
and
92 deletions.
There are no files selected for viewing
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
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
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
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,31 @@ | ||
{ | ||
pkgs, | ||
config, | ||
... | ||
}: let | ||
deployUsers = import ./ssh_keys.nix; | ||
in { | ||
# Configuration required to use github actions to deploy to nodes | ||
users.users.deploy = { | ||
isNormalUser = true; | ||
|
||
extraGroups = [ | ||
"wheel" # Needed for nixos-rebuild. Originally the idea was to just limit it to a group and setup sudo to allow nixos-rebuild as that user, but that would result in them being able to modify system.activationScripts regardless and run scripts as root, so it's not very useful | ||
]; | ||
|
||
group = "deploy"; | ||
openssh.authorizedKeys.keys = | ||
deployUsers | ||
++ [ | ||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL9Pizmnyye3CmgonAAzdVBeiVUyXs+pk8LFPAaUFnVi deploy@tgstation-infra-staging" | ||
]; | ||
}; | ||
|
||
users.groups.deploy = {}; | ||
nix.settings = { | ||
# Allow our user to use binary caches during builds explicitly | ||
trusted-users = [ | ||
"deploy" | ||
]; | ||
}; | ||
} |
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
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
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