I have a workflow that is building in parallel all the services of my application:
workflows:
build-test-publish:
jobs:
- prepare_bakefile
- build_svc1:
requires:
- prepare_bakefile
- build_svc2:
requires:
- prepare_bakefile
- build_svc3:
requires:
- prepare_bakefile
- build_svc4:
requires:
- prepare_bakefile
- build_svc5:
requires:
- prepare_bakefile
And each service is built with something like this:
jobs:
build_svc1:
machine:
image: ubuntu-2204:current
docker_layer_caching: true
- run:
command: |
docker buildx bake --progress=plain --file=docker-bake.hcl --file=baked-metadata.json svc1
I’m trying to make this setup work properly with DLC, but I cannot figure out a way to make it works: the cache does not seems to be used properly between reruns of the job, is there something obvious I’m missing ?
Also I was wondering if the DLC was scoped to jobs and not to workflow ?