Closed AndreMiras closed 4 years ago
Problem seems to be with DockerHub automatic builds and its way to deal with COPY
command I assume. If I push the image myself then I don't get cache bust. It means we cannot use the automatic builds if we want to fully leverage the cache.
Fixed via ea81423
For instance see build https://travis-ci.org/AndreMiras/EtherollApp/jobs/597317675 It uses the cache until before the
COPY Makefile ${WORK_DIR}
command. Same can be reproduced locally by pulling the image and building it locally. Then if I ran both containers and do a sha1sum of theMakefile
, it's the same. So I'm not sure why this would not pick the cache. This is annoying because it could speed up the android build/test on CI which currently runs in ~30 minutes. See more build log context below: