mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Parallelise cache pulling for builds
Change-type: patch
This commit is contained in:
parent
898312151a
commit
9af416c7c0
@ -67,12 +67,13 @@ function tryPullForCache() {
|
|||||||
|
|
||||||
# Attempt to pull images for cache
|
# Attempt to pull images for cache
|
||||||
# Only if the pull succeeds we add a --cache-from option
|
# Only if the pull succeeds we add a --cache-from option
|
||||||
tryPullForCache $TARGET_CACHE
|
tryPullForCache $TARGET_CACHE &
|
||||||
tryPullForCache $TARGET_CACHE_MASTER
|
tryPullForCache $TARGET_CACHE_MASTER &
|
||||||
tryPullForCache $NODE_CACHE
|
tryPullForCache $NODE_CACHE &
|
||||||
tryPullForCache $NODE_CACHE_MASTER
|
tryPullForCache $NODE_CACHE_MASTER &
|
||||||
tryPullForCache $NODE_BUILD_CACHE
|
tryPullForCache $NODE_BUILD_CACHE &
|
||||||
tryPullForCache $NODE_BUILD_CACHE_MASTER
|
tryPullForCache $NODE_BUILD_CACHE_MASTER &
|
||||||
|
wait
|
||||||
|
|
||||||
export DOCKER_BUILD_OPTIONS=${CACHE_FROM}
|
export DOCKER_BUILD_OPTIONS=${CACHE_FROM}
|
||||||
export ARCH
|
export ARCH
|
||||||
|
Loading…
Reference in New Issue
Block a user