Use a shallow clone for submodules in Netlify
This commit is contained in:
parent
352700b158
commit
7b85bc3b49
|
|
@ -4,7 +4,7 @@
|
||||||
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
|
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
|
||||||
publish = "public"
|
publish = "public"
|
||||||
functions = "functions"
|
functions = "functions"
|
||||||
command = "git submodule update --init --recursive && make non-production-build"
|
command = "git submodule update --init --recursive --depth 1 && make non-production-build"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.70.0"
|
HUGO_VERSION = "0.70.0"
|
||||||
|
|
@ -16,13 +16,13 @@ HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "git submodule update --init --recursive && make deploy-preview"
|
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "git submodule update --init --recursive && make deploy-preview"
|
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
|
||||||
|
|
||||||
[context.master]
|
[context.master]
|
||||||
# This context is triggered by the `master` branch and allows search indexing
|
# This context is triggered by the `master` branch and allows search indexing
|
||||||
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
|
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "git submodule update --init --recursive && make production-build"
|
command = "git submodule update --init --recursive --depth 1 && make production-build"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue