prometheus-act-exporter/hooks/build

10 lines
376 B
Bash

#!/bin/bash
# $IMAGE_NAME var is injected into the build so the tag is correct.
# See https://medium.com/microscaling-systems/labelling-automated-builds-on-docker-hub-f3d073fb8e1 for
# more details
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 .