Reputation: 41
I have a build where this image is stored in my GCR and I want to reduce the time as it takes several minutes to pull each time. Is there a way to cache this image so each time it can be instantly taken from a cache?
# Run tests
- name: 'gcr.io/{Project name}/{name of my image}'
entrypoint: 'bash'
args:
- -c
- |
make run-tests
id: run-tests
So I want to somehow cache this 'gcr.io/{Project name}/{name of my image}'
As every build, it takes several minutes for Pulling fs layer, Waiting, Verifying Checksum, Download complete. So my later build steps this is cached as it says Already have image (with digest): gcr.io/{Project name}/{name of my image}
. I basically want to get that line at the top of my tests too
Upvotes: 4
Views: 531