about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
Diffstat (limited to 'ops')
-rw-r--r--ops/buildkite/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/ops/buildkite/default.nix b/ops/buildkite/default.nix
index 46c20e4a5f93..0d39bc06010d 100644
--- a/ops/buildkite/default.nix
+++ b/ops/buildkite/default.nix
@@ -5,12 +5,10 @@ depot.nix.readTree.drvTargets rec {
     p.buildkite
   ]);
 
-  validate = pkgs.runCommand "tf-validate-buildkite"
-    {
-      BUILDKITE_API_TOKEN = "ci-dummy";
-    } ''
-    cp -r ${lib.cleanSource ./.}/* . && chmod -R u+w .
-    ${terraform}/bin/terraform init -upgrade -backend=false -input=false
-    ${terraform}/bin/terraform validate | tee $out
-  '';
+  validate = depot.tools.checks.validateTerraform {
+    inherit terraform;
+    name = "buildkite";
+    src = lib.cleanSource ./.;
+    env.BUILDKITE_API_TOKEN = "ci-dummy";
+  };
 }