mirror of https://github.com/istio/istio.io.git
Add a netlify.toml file to control options. (#1532)
This commit is contained in:
parent
e406513c0b
commit
0ebbdb3fdc
6
Makefile
6
Makefile
|
@ -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)"
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
[build]
|
||||
publish = "public"
|
||||
command = "make netlify"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.42.1"
|
Loading…
Reference in New Issue