Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cure basic feature checkout workflow #114

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/nix_config/ci-runner/configuration.nix
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,20 @@
url = "https://github.com/cherusk/godon";
tokenFile = "/srv/gh_runner.token";
extraLabels = [ "nixos" "osuosl" ];
extraPackages = with pkgs; [ nixos-generators mask docker ];
workDir = "/github-runner/";
serviceOverrides = {
PrivateUsers = false;
DynamicUser = false;
PrivateDevices = false;
PrivateMounts = false;
};
};
};

# create github-runner work dir
systemd.tmpfiles.rules = [ "d /github-runner/ 0755 root root -" ];

environment.systemPackages = let pythonModules = pythonPackages: with pythonPackages; [ pyyaml ];
in with pkgs; [
(python3.withPackages pythonModules)
Expand All @@ -59,6 +70,7 @@
killall
mask
nmap
nixos-generators
openssh
parted
pciutils
Expand All @@ -82,15 +94,15 @@
];
};

users.users.github-runner = {
users.users.github-runner-nixos = {
isNormalUser = true;
home = "/home/github-runner/";
home = "/home/github-runner-nixos/";
extraGroups = [ "wheel" "docker" "libvirtd" ];
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLt7w6tl++WJT/Bn1HsOep25KpgL867SuZAnK5ifOgd6wS0PxHGiCD/4A0RSHdHZTXMv37DGlC36rhlWJUdsncI5O1F5Ay2d626fPg+REaGi8R7Hox/qInkDs9/NS2IbZvQaYIdeDK151McagWijRFCxTEMYftpslXWKiN5ckP/KjFdUkS7fKcGwqk+UFy7ehMF42i8MUOdkZMJwy8Yc2y4FTdzlrh8VELkMxCePcU9LrvwY5sSh9j65Q5IcIBlma36JMJZQLuEWi7oEGAASehUNeMXs9WFkbyCCWdR1PjHNfbrgZUpgw71SkiQrM8+9/jcfyl5kfkn+GUECQcWBDQnbi809re1ZVmOSUrDBAoEAevFO8qHLgz0d9H0Zs/EOghyN+a4eBLB3et46F733GYGGO4AMMvRSibeyHCLINCLeV19FkHXSxD5iXTRt6WXo3vhKC/tw0XN0yNSOc1nHC+azAJxG6zOxzUzXjC9c1wxaWmGReeanlefQTHVRcMtBfm1NAOwaD0DubSTEBeRRMHfW2ZRs3nV0l73HJWh9J8+5MTpCOK7BGzC0LILMsSqpltUTLI3YmFO5Ly9RokUbcFmnn4Yu4IreTITMmn73CuLNkjZIKwucWmJkWNmWc1hrLRO12Yad/aQS+rczKcQFoNXl+bBmIAOWYJ1C6mSKG/Hw== ci_runner@gh"
];
};


virtualisation = {
docker.enable = true;
vswitch.enable = true;
Expand All @@ -107,5 +119,5 @@

nixpkgs.config.allowUnfree = true;

system.nixos.version = "21.11";
system.nixos.version = "23.05";
}
1 change: 0 additions & 1 deletion .github/workflows/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ jobs:
- name: do post checkout
run: >
pushd api && mask api generate && popd;
chown -R github-runner:users *