Remove some code duplication. Change-Id: I7ff49e728e1bd584bca3b84cdc033d93e60aefc2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5851 Tested-by: BuildkiteCI Reviewed-by: asmundo <asmundo@gmail.com>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ depot, lib, pkgs, ... }:
 | 
						|
 | 
						|
depot.nix.readTree.drvTargets rec {
 | 
						|
  terraform = pkgs.terraform.withPlugins (p: [
 | 
						|
    p.buildkite
 | 
						|
  ]);
 | 
						|
 | 
						|
  validate = depot.tools.checks.validateTerraform {
 | 
						|
    inherit terraform;
 | 
						|
    name = "buildkite";
 | 
						|
    src = lib.cleanSource ./.;
 | 
						|
    env.BUILDKITE_API_TOKEN = "ci-dummy";
 | 
						|
  };
 | 
						|
}
 |