Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph committed Apr 14, 2021
1 parent 4ef3e35 commit 6f4b63e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# $IMAGE_NAME var is injected into the build so the tag is correct.
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` \
--build-arg VERSION=`cat VERSION` .
docker build \
--build-arg BUILD_RFC3339=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--build-arg COMMIT=$(git rev-parse --short HEAD) \
--build-arg VERSION=$(git describe --tags --always) \
-t $IMAGE_NAME .

0 comments on commit 6f4b63e

Please sign in to comment.