forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
28 lines (22 loc) · 830 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[build]
base = "docs/"
publish = "public/"
command = "hugo -b $DEPLOY_PRIME_URL"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"
[build.environment]
# added specifically a docker image, so the versions within makefile and netlify documentation match
# renovate: datasource=docker depName=klakegg/hugo
HUGO_VERSION = "0.107.0"
HUGO_ENABLEGITINFO = "true"
# On netlify our branch will always be the one we are currently building for
# important information regarding naming
# https://gohugo.io/getting-started/configuration/#configure-with-environment-variables
HUGOxPARAMSxGITHUB_BRANCH="$BRANCH"
[context.deploy-preview]
HUGO_ENV = "development"
[context.branch-deploy]
HUGO_ENV = "staging"
[context.production.environment]
HUGO_ENV = "production"
[context.production]
command = "hugo -b $URL"