monolith: add forgejo runner
This commit is contained in:
		
							parent
							
								
									53291508c3
								
							
						
					
					
						commit
						26c6596beb
					
				
					 5 changed files with 23 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -123,6 +123,7 @@
 | 
			
		|||
          modules = [
 | 
			
		||||
            ./hosts/monolith.nix
 | 
			
		||||
            ./system/monolith-gitlab-runner.nix
 | 
			
		||||
            ./system/monolith-forgejo-runner.nix
 | 
			
		||||
            ./system/nix-serve.nix
 | 
			
		||||
            ./system/steam.nix
 | 
			
		||||
          ] ++ common_modules;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										
											BIN
										
									
								
								secrets/monolith-forgejo-runner-token.age
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								secrets/monolith-forgejo-runner-token.age
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -5,6 +5,7 @@ in
 | 
			
		|||
  "rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "gitlab-runner-thoreb-telemetria-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "monolith-forgejo-runner-token.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "phantom-nextcloud.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								system/monolith-forgejo-runner.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								system/monolith-forgejo-runner.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
{ pkgs, config, ... }: {
 | 
			
		||||
  services.gitea-actions-runner = {
 | 
			
		||||
    package = pkgs.forgejo-actions-runner;
 | 
			
		||||
    instances.default = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      name = "monolith";
 | 
			
		||||
      url = "https://git.lelgenio.xyz";
 | 
			
		||||
      tokenFile = config.age.secrets.monolith-forgejo-runner-token.path;
 | 
			
		||||
      labels = [
 | 
			
		||||
        # provide a debian base with nodejs for actions
 | 
			
		||||
        "debian-latest:docker://node:18-bullseye"
 | 
			
		||||
        # fake the ubuntu name, because node provides no ubuntu builds
 | 
			
		||||
        "ubuntu-latest:docker://node:18-bullseye"
 | 
			
		||||
        # provide native execution on the host
 | 
			
		||||
        #"native:host"
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -6,6 +6,8 @@
 | 
			
		|||
      ../secrets/monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
 | 
			
		||||
    secrets.gitlab-runner-thoreb-telemetria-registrationConfigFile.file =
 | 
			
		||||
      ../secrets/gitlab-runner-thoreb-telemetria-registrationConfigFile.age;
 | 
			
		||||
    secrets.monolith-forgejo-runner-token.file =
 | 
			
		||||
      ../secrets/monolith-forgejo-runner-token.age;
 | 
			
		||||
    secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.file =
 | 
			
		||||
      ../secrets/rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
 | 
			
		||||
    secrets.monolith-nix-serve-privkey.file =
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue