Skip to content

Commit c0b437d

Browse files
mastefjgranick
authored andcommitted
Only switch LIME_VERSION for develop branch
1 parent 0d3123d commit c0b437d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hooks/build

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
# $IMAGE_NAME var is injected into the build so the tag is correct.
55

66
echo "Build hook running"
7+
8+
if [ "$DOCKER_TAG" == "develop" ]; then
9+
LIME_VERSION="develop"
10+
else
11+
LIME_VERSION="latest"
12+
fi
13+
714
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
815
--build-arg VCS_REF=`git rev-parse --short HEAD` \
9-
--build-arg LIME_VERSION=$DOCKER_TAG \
16+
--build-arg LIME_VERSION=$LIME_VERSION \
1017
-t $IMAGE_NAME .

0 commit comments

Comments
 (0)