Multiple docker caches

Germán Schuager March 20, 2020

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?

 

2 comments

Uday Shanbhag March 1, 2022

Yes. Even I have same issue. Is this resolved or any one has found workaround. we use self hosted runners

Ian Kundil June 24, 2022

Did anyone find a solution for this?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events