message: Adds npm prune --production before docker image builds
diff: YELLOW='\033[0;33m'
  NC='\033[0m'
  +NPM_PRUNE_API='( cd api && npm prune --production )'
  +
  echo
  echo "+++ Run docker build and publish. +++"
  echo
  if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ]; then
  if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
  - echo "build docker images";
  + echo "+ build docker images";
  + echo "+ prune dev-dependencies"
  + $NPM_PRUNE_API
  docker build -t hdafbi/geli-api:latest -f .docker/api/Dockerfile .
  docker tag hdafbi/geli-api hdafbi/geli-api:$TRAVIS_BRANCH
  docker build -t hdafbi/geli-web-frontend:latest -f .docker/web-frontend/Dockerfile .
  docker tag hdafbi/geli-web-frontend hdafbi/geli-web-frontend:$TRAVIS_BRANCH
  - echo "publish docker images";
  + echo "+ publish docker images";
  docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
  docker push hdafbi/geli-api;
  docker push hdafbi/geli-api:$TRAVIS_BRANCH;
  @@ -24,12 +28,14 @@ if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ]; then
  fi
  else
  if [ -z ${TRAVIS_TAG+x} ]; then
  - echo "This is a tagged build: $TRAVIS_TAG";
  - echo "build docker images";
  + echo "+ This is a tagged build: $TRAVIS_TAG";
  + echo "+ build docker images";
  + echo "+ prune dev-dependencies"
  + $NPM_PRUNE_API
  docker build -t hdafbi/geli-api:$TRAVIS_TAG -f .docker/api/Dockerfile .
  docker build -t hdafbi/geli-web-frontend:$TRAVIS_TAG -f .docker/web-frontend/Dockerfile .
  - echo "publish docker images";
  + echo "+ publish docker images";
  docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
  docker push hdafbi/geli-api:$TRAVIS_TAG;
  docker push hdafbi/geli-web-frontend:$TRAVIS_TAG;
  