From 60e62241a8c20e22b3117096a0cbb3f9e4881b79 Mon Sep 17 00:00:00 2001 From: Martin Grubinger Date: Thu, 23 Jan 2020 11:18:00 +0100 Subject: [PATCH] Add Bitbucket Pipelines to errors/no-cache.md (#10229) * Update no-cache.md: add Bitbucket Pipelines Add section on how to setup caching for Bitbucket Pipelines * Update no-cache.md Change wording of referencing the next cache in bitbucket pipeline --- errors/no-cache.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/errors/no-cache.md b/errors/no-cache.md index 4c572f51237d6cc..12fbd279c0ef75b 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -74,3 +74,23 @@ cache: - 'node_modules/**/*' # Cache `node_modules` for faster `yarn` or `npm i` - '.next/cache/**/*' # Cache Next.js for faster application rebuilds ``` + +**Bitbucket Pipelines** + +Add or merge the following into your `bitbucket-pipelines.yml` at the top level (same level as `pipelines`): + +```yaml +definitions: + caches: + nextcache: .next/cache +``` + +Then reference it in the `caches` section of your pipeline's `step`: + +```yaml +- step: + name: your_step_name + caches: + - node + - nextcache +```