about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-06-06T21·29+0000
committertazjin <tazjin@tvl.su>2022-06-07T09·32+0000
commit8e8d6eb1dfb51aeb0f2392bc7bc2e2a7b7ca9522 (patch)
tree5a9347de81e29a857007b1eb6e7685a7930fdb51 /ops
parent92a6e2538028987d589a22d1242ae8a4e4cfafe9 (diff)
refactor(ops/keycloak): Use tools.checks.validateTerraform r/4227
Remove some ~commit message~ ... uh, code duplication.

Change-Id: Id6e8f2132999e153d3984848f95ccabd52e4f45f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5853
Tested-by: BuildkiteCI
Reviewed-by: asmundo <asmundo@gmail.com>
Diffstat (limited to 'ops')
-rw-r--r--ops/keycloak/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/ops/keycloak/default.nix b/ops/keycloak/default.nix
index ef95c7290ad8..94ed912dc936 100644
--- a/ops/keycloak/default.nix
+++ b/ops/keycloak/default.nix
@@ -6,9 +6,9 @@ depot.nix.readTree.drvTargets rec {
     p.keycloak
   ]);
 
-  validate = pkgs.runCommand "tf-validate-keycloak" { } ''
-    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 = "keycloak";
+    src = lib.cleanSource ./.;
+  };
 }