92a6e25380
Remove some code duplication. Change-Id: Ia9e0b3b22926eb9e72f302e2c1ebcee68eaa1db9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5852 Tested-by: BuildkiteCI Reviewed-by: asmundo <asmundo@gmail.com>
15 lines
402 B
Nix
15 lines
402 B
Nix
{ depot, lib, pkgs, ... }:
|
|
|
|
depot.nix.readTree.drvTargets rec {
|
|
# Provide a Terraform wrapper with the right provider installed.
|
|
terraform = pkgs.terraform.withPlugins (_: [
|
|
depot.third_party.terraform-provider-glesys
|
|
]);
|
|
|
|
validate = depot.tools.checks.validateTerraform {
|
|
inherit terraform;
|
|
name = "glesys";
|
|
src = lib.cleanSource ./.;
|
|
env.GLESYS_TOKEN = "ci-dummy";
|
|
};
|
|
}
|