Try to populate the docker cache before building.

This commit is contained in:
Pagan Gazzard 2015-07-31 17:01:36 +01:00 committed by Pablo Carranza Vélez
parent 7e6ef77d0f
commit 0703759782
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Try to populate the docker cache before building. [Page]
# v0.0.15 # v0.0.15
* Make resolv.conf writable from a user container. [Praneeth] * Make resolv.conf writable from a user container. [Praneeth]

View File

@ -5,6 +5,9 @@ set -e
VERSION=$(git describe --always --abbrev=6) VERSION=$(git describe --always --abbrev=6)
ESCAPED_BRANCH_NAME=$(echo $sourceBranch | sed 's/[^a-z0-9A-Z_.-]/-/g') ESCAPED_BRANCH_NAME=$(echo $sourceBranch | sed 's/[^a-z0-9A-Z_.-]/-/g')
# Try pulling the old build first for caching purposes.
docker pull resin/${ARCH}-supervisor:${ESCAPED_BRANCH_NAME} || docker pull resin/${ARCH}-supervisor:master || true
# Build the images # Build the images
make SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} ARCH=${ARCH} DEPLOY_REGISTRY= deploy make SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} ARCH=${ARCH} DEPLOY_REGISTRY= deploy
make SUPERVISOR_VERSION=${VERSION} ARCH=${ARCH} DEPLOY_REGISTRY= deploy make SUPERVISOR_VERSION=${VERSION} ARCH=${ARCH} DEPLOY_REGISTRY= deploy