10

Is it possible to have Google Cloud Build cache custom build step images? It appears to re-download them every build regardless of latest vs specific tags used in the name, which makes things slower as opposed to faster.

Maxim
  • 4,075
  • 1
  • 14
  • 23
Alex Zuzin
  • 101
  • 1
  • 2
  • 2
    Looking over the Cloud Build docs, and based on my own experience/research, I don't think layer caching is supported when using a Dockerfile. Which is unfortunate. – Michael Hays Nov 26 '18 at 17:14

1 Answers1

2

This is not possible today. There are official Cloud Build buildsteps that are cached, but all custom build steps will be pulled. You can minimize the pull latency by using one of the official buildsteps as a base image of your custom build step.

codrienne
  • 86
  • 4