docker-alpine-rsync/hooks/build

12 lines
362 B
Plaintext
Raw Permalink Normal View History

2020-07-08 22:19:04 +02:00
#!/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
2020-07-08 22:19:04 +02:00
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 .