mirror of
https://github.com/captn3m0/prometheus-act-exporter.git
synced 2024-09-28 22:22:57 +00:00
10 lines
376 B
Bash
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 . |