Skip to content
Branch: master
Find file Copy path
1 contributor

Users who have contributed to this file

executable file 15 lines (12 sloc) 489 Bytes
# hooks/build
# $IMAGE_NAME var is injected into the build so the tag is correct.
echo "[***] Build hook running"
docker build \
--build-arg VERSION=$(git describe --tags --always) \
--build-arg COMMIT=$(git rev-parse HEAD) \
--build-arg URL=$(git config --get remote.origin.url) \
--build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) \
--build-arg DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
You can’t perform that action at this time.