I have a monorepo with 2 different applications.
Initially I have set up 2 custom pipelines.
Each of them uses their own Dockerfile to build the corresponding output image, but the base images are different.
Something like this:
custom:
backend:
- step:
name: Build
script:
- bash ./backend/build.sh
services:
- docker
caches:
- docker
webspa:
- step:
name: Build
script:
- bash ./webspa/build.sh
services:
- docker
caches:
- docker
The problem I'm facing is that I can only have a single docker cache, which speeds up the build that originally generated it, but it is useless for the other one.
Is there a way to configure more than one docker cache?