tvl-depot/ops/buildkite/default.nix
Vincent Ambo 72f91f032b refactor(ops/buildkite): Use tools.checks.validateTerraform
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>
2022-06-07 09:32:13 +00:00

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";
};
}