From a2f79dab432670ff4fd928f75541ec3636db040b Mon Sep 17 00:00:00 2001 From: solidnerd Date: Mon, 10 Dec 2018 02:47:28 -0800 Subject: [PATCH] Update hook to build a little bit faster Signed-off-by: solidnerd --- hooks/build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hooks/build b/hooks/build index ca490f82..7cc38e87 100644 --- a/hooks/build +++ b/hooks/build @@ -3,9 +3,10 @@ # Docker Daemon Build Hook # $IMAGE_NAME var is injected into the build so the tag is correct. +docker pull ${DOCKER_REPO}:latest + docker build \ - --pull \ - --cache-from=${IMAGE_NAME} \ + --cache-from=${DOCKER_REPO}:latest \ --build-arg=BUILD_DATE="$(date +"%Y-%m-%d %H:%M:%S%:z")" \ --build-arg=VCS_REF="$(git rev-parse --short HEAD)" \ --build-arg=VERSION="$(cat VERSION)" \