forked from projectcalico/calico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
29 lines (24 loc) · 1.18 KB
/
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
29
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts.
# The cp, bundle install and bundle exec parts are only required to work around not being able to put the Gemfile int he root directory. It can't go in the root because that breaks the jekyll/jekyll container.
[build]
command = 'export PATH=$PATH:/opt/build/repo/bin; cp netlify/Gemfile Gemfile; make bin/helm; bundle install && bundle exec jekyll build'
# Deploy Preview context: All Deploy Previews will inherit these settings.
# Override the build command to include the Preview URL
[context.deploy-preview]
command = 'export PATH=$PATH:/opt/build/repo/bin; cp netlify/Gemfile Gemfile; echo "url: $DEPLOY_PRIME_URL" >_config_url.yml; make bin/helm; bundle install && bundle exec jekyll build --config _config.yml,_config_url.yml'
[[headers]]
for = "/*.yaml"
[headers.values]
content-type = "text/yaml"
[[headers]]
for = "/*.yml"
[headers.values]
content-type = "text/yaml"
[[headers]]
for = "/*.sh"
[headers.values]
content-type = "text/x-shellscript"
[[headers]]
for = "/*.bash"
[headers.values]
content-type = "text/x-shellscript"