loptland: add forgejorunner
This commit is contained in:
		
							parent
							
								
									6f5c0a462f
								
							
						
					
					
						commit
						79f9124014
					
				
					 2 changed files with 26 additions and 3 deletions
				
			
		|  | @ -32,6 +32,9 @@ in | |||
|       "forgejo/mail/passwordHash" = { | ||||
|         inherit sopsFile; | ||||
|       }; | ||||
|       "forgejo/runner/token" = { | ||||
|         inherit sopsFile; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  | @ -118,6 +121,24 @@ in | |||
|     certificateScheme = "acme-nginx"; | ||||
|   }; | ||||
| 
 | ||||
|   services.gitea-actions-runner = { | ||||
|     package = pkgs.forgejo-actions-runner; | ||||
|     instances.default = { | ||||
|       enable = true; | ||||
|       name = "monolith"; | ||||
|       url = "https://git.${domainName}.com"; | ||||
|       tokenFile = config.sops.secrets."forgejo/runner/token".path; | ||||
|       labels = [ | ||||
|         "ubuntu-latest:docker://node:16-bullseye" | ||||
|         "ubuntu-22.04:docker://node:16-bullseye" | ||||
|         "ubuntu-20.04:docker://node:16-bullseye" | ||||
|         "ubuntu-18.04:docker://node:16-buster" | ||||
|         ## optionally provide native execution on the host: | ||||
|         # "native:host" | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   networking.firewall.allowedTCPPorts = [ | ||||
|     forgejoPort | ||||
|     80 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue