tetragon
/
netlify.toml
25 строк · 1.1 Кб
1# Netlify is handled and authorized by Mahe and we use a free plan.
2#
3# Netlify currently has a design issue internally so they cannot distinguish
4# cancel jobs from failed jobs. So we disabled all notification from starting
5# or cancelling/failing jobs so that non-docs related PRs are not spamed with
6# Netlify notifications. See https://answers.netlify.com/t/deploy-notifications-cancel-vs-failure/37300.
7[build]8base = "/docs"9publish = "public"10command = "npm ci && hugo"11# The ignore command is used by Netlify deploy bot to filter if the PR should
12# be previewed or not, and generally if the website should be built or not.
13#
14# CACHED_COMMIT_REF: reference ID (also known as “SHA” or “hash”) of the last
15# commit that we built before the current build. When a build runs without
16# cache, CACHED_COMMIT_REF will be the same as the COMMIT_REF.
17#
18# COMMIT_REF: reference ID (also known as “SHA” or “hash”) of the commit
19# we’re building.
20#
21# See https://answers.netlify.com/t/support-guide-how-to-use-the-ignore-command/37517
22ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."23
24[build.environment]25HUGO_VERSION = "0.126.2"26