2021-01-06 01:49:03 +01: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.
|
|
|
|
|
2021-03-09 22:07:00 +01:00
|
|
|
export DOCKER_BUILDKIT=1
|
2021-01-06 01:49:03 +01: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 .
|