I was tinkering with bitbucket pipelines for some time and have come far in improving time and resources taken for a buid/deployment script. But i got stuck at this Problem:
- parallel:
- step:
caches:
- docker
services:
- docker
script:
- echo ${REGISTRY_PASSWORD} | docker login registry.our-domain.net --username bitbucket --password-stdin &&
- docker build --rm -t registry.our-domain.net/project-container_2:staging -f docker/web/Dockerfile . &&
- docker push registry.our-domain.net/project-container_2:staging
- step:
caches:
- docker
services:
- docker
script:
- echo ${REGISTRY_PASSWORD} | docker login registry.our-domain.net --username bitbucket --password-stdin &&
- docker build --rm -t registry.our-domain.net/project-container_1:staging -f docker/app/Dockerfile . &&
- docker push registry.our-domain.net/project-container_1:staging
If i try to cache both image build processes, i cant. Only the build process that is compiled first will be cached.
Skipping assembly of docker cache as one is already present Cache "docker": Skipping upload for existing cache
It seems like the caching is done based on the name of the defined cache. the docker-cache is done by bitbucket, so i cant "rename" the second one.
Does somebody have the same issue/ a solution ?