docker-alpine-rf/hooks/build
surtur 08066b573c
All checks were successful
continuous-integration/drone/push Build is passing
build: enable BuildKit via build hook env var
* hopefully this also makes DockerHub builds faster
2021-03-09 21:15:44 +01:00

12 lines
362 B
Bash

#!/bin/bash
# as per https://github.com/rossf7/label-schema-automated-build
# $IMAGE_NAME var is injected into the build so the tag is correct.
export DOCKER_BUILDKIT=1
echo "Build hook running"
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t $IMAGE_NAME .