From 3a80ab2ba5a84fbe53c6aeee91f1ff9acc2e59ad Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 11 Sep 2021 04:27:43 +0300 Subject: fix(deploy-whitby): Add .html suffix to diff filenames This makes nginx' content-type recognition work correctly. Change-Id: I990b00f1e0f4ef311f53a8885718fa33d249c886 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3529 Tested-by: BuildkiteCI Reviewed-by: sterni --- ops/deploy-whitby/deploy-whitby.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/deploy-whitby/deploy-whitby.sh b/ops/deploy-whitby/deploy-whitby.sh index 808f65cda2..ecebb7d25d 100755 --- a/ops/deploy-whitby/deploy-whitby.sh +++ b/ops/deploy-whitby/deploy-whitby.sh @@ -34,7 +34,7 @@ git -C "$worktree_dir" checkout "$new_rev" current=$(nix show-derivation /run/current-system | jq -r 'keys | .[0]') new=$(nix-instantiate -A ops.nixos.whitbySystem "$worktree_dir") -diff_filename="$(drv_hash "$current")..$(drv_hash "$new")" +diff_filename="$(drv_hash "$current")..$(drv_hash "$new").html" nix-diff "$current" "$new" --color always \ | ansi2html \ >| "$HTML_ROOT/diff/$diff_filename" -- cgit 1.4.1