Merge pull request #21856 from sftim/20200616_netlify_shallow_clone_submodules

Use a shallow clone for submodules in Netlify
pull/22054/head
Kubernetes Prow Robot 2020-06-24 14:26:37 -07:00 committed by GitHub
commit f9fb77b082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
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]
HUGO_VERSION = "0.70.0"
@ -16,13 +16,13 @@ HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[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]
command = "git submodule update --init --recursive && make deploy-preview"
command = "git submodule update --init --recursive --depth 1 && make deploy-preview"
[context.master]
# This context is triggered by the `master` branch and allows search indexing
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
command = "git submodule update --init --recursive && make production-build"
command = "git submodule update --init --recursive --depth 1 && make production-build"