Skip to content

Commit 0d3123d

Browse files
mastefjgranick
authored andcommitted
Add docker hub hook to select LIME_VERSION based on current tag
1 parent 4c35db4 commit 0d3123d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hooks/build

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Build hook for docker hub.
4+
# $IMAGE_NAME var is injected into the build so the tag is correct.
5+
6+
echo "Build hook running"
7+
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
8+
--build-arg VCS_REF=`git rev-parse --short HEAD` \
9+
--build-arg LIME_VERSION=$DOCKER_TAG \
10+
-t $IMAGE_NAME .

0 commit comments

Comments
 (0)