Skip to content

Allow using kaniko layer cache feature for RUN commands

Alexandre FEBLOT requested to merge feature/kaniko-cache into develop

The cache feature might prevent some layers to be built while they should. Hence:

  • It is disabled for master
  • It is also disabled by default for other branches, users should enable it as their own risk (of, again, having layers not rebuilt while they should, depending how they are specified)

Using the cache required a registry to push cached layers. The PROJECT_DOCKER_REGISTRY_DEV or PROJECT_DOCKER_REGISTRY_PROD is used for that, and layers are stored below a kaniko_cache "directory".

Edited by Alexandre FEBLOT

Merge request reports