I have implemented the Kaniko Cache for Google Cloud Build with the following exact cloudbuild.yaml file :
steps:
- name: 'gcr.io/kaniko-project/executor:latest'
args:
- --destination=gcr.io/$PROJECT_ID/image
- --cache=true
- --cache-ttl=6h
timeout: 7200s
I can see the newer logs being introduced into Cloud Build traces :
Updating files: 95% (11083/11587)
Updating files: 96% (11124/11587)
Updating files: 97% (11240/11587)
Updating files: 98% (11356/11587)
Updating files: 99% (11472/11587)
Updating files: 100% (11587/11587)
Updating files: 100% (11587/11587), done.
HEAD is now at 21f501d Update Dockerfile
BUILD
Pulling image: gcr.io/kaniko-project/executor:latest
latest: Pulling from kaniko-project/executor
.
.
INFO[2152] Taking snapshot of full filesystem...
INFO[2194] Pushing layer gcr.io/videoo2/image/cache:52..25 to cache now
INFO[2194] CMD ["bash"]
INFO[2194] Pushing image to gcr.io/videoo2/image/cache:52..25
INFO[2194] No files changed in this command, skipping snapshotting.
INFO[2196] Pushed gcr.io/videoo2/image/cache@sha256:a8..ed69e6431
INFO[2196] Pushing image to gcr.io/videoo2/image
INFO[2199] Pushed gcr.io/videoo2/image@sha256:38..68c28
But there is literally no change in the speed of the builds.
What shall I supposed to do in order actually benefit from this caching ?