Skip to content

Commit

Permalink
[docker] refs #27 Improve hooks/build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevYuniers committed Dec 15, 2018
1 parent 3db1914 commit c1f791c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/images/dev-cli/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# CACHE_TAG: the Docker repository tag being built.
# IMAGE_NAME: the name and tag of the Docker repository being built.
# (This variable is a combination of DOCKER_REPO:CACHE_TAG.)
# VS_EXTENSIONS: Visual Studio Code extensions to add on docker image,
# only if base image is not CLI purpose.

echo "Build hook running"

Expand All @@ -21,7 +23,7 @@ docker build --build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
-t "$IMAGE_NAME" .

# Build :dind, :vscode and :vscode-dind tag
# Only build if
# Only build if docker tag is develop
if [ "$CACHE_TAG" -eq "develop" ]; then
docker build --build-arg IMAGE_FROM="skycoin/skycoindev-cli:dind" \
--build-arg BDATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
Expand Down

0 comments on commit c1f791c

Please sign in to comment.