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 <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-09-11 04:27:43 +03:00 committed by tazjin
parent 9c038cbff0
commit 3a80ab2ba5

View file

@ -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"