tvl-depot/ops/buildkite/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
429 B
Nix
Raw Normal View History

{ depot, lib, pkgs, ... }:
depot.nix.readTree.drvTargets rec {
terraform = pkgs.terraform.withPlugins (p: [
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
'';
}