Warm local caches in a step. In Codeship Jet, the cached property of a service enables a branchname-based cache-warming scheme. The trouble is that it kicks in for both local and CI builds, forcing a pull even when building locally. This image attempts to move cache configuration into a step where it can be skipped with tag predicates.
The command should be a bare repository (no tag). The container uses the CI_BRANCH environment to determine if it should pull from a branch-specific tag (it uses branch-${CI_BRANCH}).
dockerfile: https://github.com/aztecrex/codeship-tools/blob/master/src/warm-cache/Dockerfile
Content type
Image
Digest
Size
11.1 MB
Last updated
over 10 years ago
docker pull cjengineering/codeship-warm-cache