Parallelise cache pulling for builds

Change-type: patch
This commit is contained in:
Pagan Gazzard 2019-03-28 10:49:31 +00:00
parent 898312151a
commit 9af416c7c0

View File

@ -67,12 +67,13 @@ function tryPullForCache() {
# Attempt to pull images for cache
# Only if the pull succeeds we add a --cache-from option
tryPullForCache $TARGET_CACHE
tryPullForCache $TARGET_CACHE_MASTER
tryPullForCache $NODE_CACHE
tryPullForCache $NODE_CACHE_MASTER
tryPullForCache $NODE_BUILD_CACHE
tryPullForCache $NODE_BUILD_CACHE_MASTER
tryPullForCache $TARGET_CACHE &
tryPullForCache $TARGET_CACHE_MASTER &
tryPullForCache $NODE_CACHE &
tryPullForCache $NODE_CACHE_MASTER &
tryPullForCache $NODE_BUILD_CACHE &
tryPullForCache $NODE_BUILD_CACHE_MASTER &
wait
export DOCKER_BUILD_OPTIONS=${CACHE_FROM}
export ARCH