mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Update hook to build a little bit faster
Signed-off-by: solidnerd <niclas@mietz.io>
This commit is contained in:
parent
191d189844
commit
a2f79dab43
@ -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)" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user