We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3123d commit c0b437dCopy full SHA for c0b437d
hooks/build
@@ -4,7 +4,14 @@
4
# $IMAGE_NAME var is injected into the build so the tag is correct.
5
6
echo "Build hook running"
7
+
8
+if [ "$DOCKER_TAG" == "develop" ]; then
9
+ LIME_VERSION="develop"
10
+else
11
+ LIME_VERSION="latest"
12
+fi
13
14
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
15
--build-arg VCS_REF=`git rev-parse --short HEAD` \
- --build-arg LIME_VERSION=$DOCKER_TAG \
16
+ --build-arg LIME_VERSION=$LIME_VERSION \
17
-t $IMAGE_NAME .
0 commit comments