Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/nix/generate-build-vars.sh

19 lines
623 B

#!/bin/bash
current_dir=$(cd "$(dirname "$0")" && pwd)
root_dir=$(cd "${current_dir}/.." && pwd)
pushd "${root_dir}" >/dev/null || exit 1
cat <<NIX >"${current_dir}/build-vars.nix"
# DO NOT EDIT, this file is auto-generated by
# generate-build-vars.sh for purposes of getting around
# the dependency our build has on the .git folder, which is
# not copied to the nix store when building.
# Branch should match the branch you're building on, so
# changes to this file should not be comitted to main.
# See the README for more details.
{
gitBranch = "$(git rev-parse --abbrev-ref HEAD)";
}
NIX
popd >/dev/null || exit 1