From 8e8d6eb1dfb51aeb0f2392bc7bc2e2a7b7ca9522 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 6 Jun 2022 21:29:28 +0000 Subject: refactor(ops/keycloak): Use tools.checks.validateTerraform 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 --- ops/keycloak/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ops/keycloak') 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 ./.; + }; } -- cgit 1.4.1