gitlab: use rainbow as a runner
This commit is contained in:
		
							parent
							
								
									71b785191a
								
							
						
					
					
						commit
						ba90b2a1ce
					
				
					 7 changed files with 30 additions and 3 deletions
				
			
		
							
								
								
									
										21
									
								
								system/rainbow-gitlab-runner.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								system/rainbow-gitlab-runner.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
{ config, pkgs, lib, ... }: {
 | 
			
		||||
  boot.kernel.sysctl."net.ipv4.ip_forward" = true;
 | 
			
		||||
  virtualisation.docker.enable = true;
 | 
			
		||||
  services.gitlab-runner = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings.concurrent = 1;
 | 
			
		||||
    services = {
 | 
			
		||||
      # ci_test = {
 | 
			
		||||
      #   registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
 | 
			
		||||
      #   dockerImage = "debian";
 | 
			
		||||
      #   dockerPrivileged = true;
 | 
			
		||||
      # };
 | 
			
		||||
      thoreb_builder = {
 | 
			
		||||
        registrationConfigFile = config.age.secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.path;
 | 
			
		||||
        dockerImage = "debian";
 | 
			
		||||
        dockerPrivileged = true;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  systemd.services.gitlab-runner.serviceConfig.Nice = 10;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -4,5 +4,7 @@
 | 
			
		|||
    secrets.lelgenio-cachix.file = ../secrets/lelgenio-cachix.age;
 | 
			
		||||
    secrets.monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.file =
 | 
			
		||||
      ../secrets/monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
 | 
			
		||||
    secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.file =
 | 
			
		||||
      ../secrets/rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue