We are using the pre-defined docker cache from bitbucket pipeline.
Until about a month ago the caching worked like a charm and build times for our django backend were in the order of 1min. If we rebuild that same commit with the pipeline today we have a build time of 6min even if the cache is properly populated.
Has anybody experienced a similar behavior?
Here is our bitbucket-pipeline.yml file:
image: docker/compose:1.25.0-rc2-alpine
options:
docker: true
definitions:
steps:
- step: &build-test-django
name: Build and test of Django
caches:
- docker
script:
- docker-compose -f docker-compose.yml run django pytest
- step: &build-test-frontend
name: Build and test frontend
caches:
- docker
script:
- docker-compose -f docker-compose.yml run -e CI=true frontend bash -c "npm install && npm test"
services:
docker:
memory: 2048
pipelines:
pull-requests:
'**':
- parallel:
- step: *build-test-django
- step: *build-test-frontend
branches:
develop:
- parallel:
- step: *build-test-django
- step: *build-test-frontend
master:
- parallel:
- step: *build-test-django
- step: *build-test-frontend