Add a netlify.toml file to control options. (#1532)

This commit is contained in:
Martin Taillefer 2018-06-17 07:51:45 -07:00 committed by GitHub
parent e406513c0b
commit 0ebbdb3fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,10 @@
img := gcr.io/istio-testing/website-builder:2018-06-15
docker := docker run -t -i --sig-proxy=true --rm -v $(shell pwd):/site -w /site $(img)
ifeq ($(CONTEXT),production)
baseurl := $(URL)
endif
build:
$(docker) scripts/build_site.sh
@ -16,4 +20,4 @@ serve:
netlify:
npm install -g html-minifier
scripts/gen_site.sh "$(DEPLOY_PRIME_URL)"
scripts/gen_site.sh "$(baseurl)"

6
netlify.toml Normal file
View File

@ -0,0 +1,6 @@
[build]
publish = "public"
command = "make netlify"
[build.environment]
HUGO_VERSION = "0.42.1"