fix(ops/dns): drop broken checkZone parts, fix validate
There are no .zone files in here (maybe once were, before switching DNS providers, or this was copy-pasted from elsewhere). Also, the validate.terraform target was broken, due to a typo, and not covered in CI, due to being inside another attrset. There's only a single check left, so just call that one `validate`, making it consistent with other //ops terraform workspaces, and getting CI to actually check it. Change-Id: I022138d4d3c74181a53738cb53a48b7945392345 Reviewed-on: https://cl.snix.dev/c/snix/+/30499 Tested-by: besadii Reviewed-by: Ryan Lahfa <masterancpp@gmail.com> Autosubmit: Florian Klink <flokli@flokli.de>
This commit is contained in:
parent
ec9e7ee73c
commit
20589ef8cb
1 changed files with 4 additions and 14 deletions
|
|
@ -1,24 +1,14 @@
|
|||
{ depot, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
checkZone = zone: file: pkgs.runCommand "${zone}-check" { } ''
|
||||
${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
|
||||
'';
|
||||
|
||||
in
|
||||
depot.nix.readTree.drvTargets rec {
|
||||
# Provide a Terraform wrapper with the right provider installed.
|
||||
terraform = pkgs.terraform.withPlugins (p: [
|
||||
p.digitalocean
|
||||
]);
|
||||
|
||||
validate = {
|
||||
snix-dev = checkZone "snix.dev" ./snix.dev.zone;
|
||||
snix-systems = checkZone "snix.systems" ./snix.systems.zone;
|
||||
terraform = depot.tools.checks.validateTerrform {
|
||||
validate = depot.tools.checks.validateTerraform {
|
||||
inherit terraform;
|
||||
name = "dns";
|
||||
src = lib.cleanSource ./.;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue