blob: 618a914f7314c9d8926b49a9c74cbb64bca20e25 [file] [log] [blame]
David K. Bainbridge14d58402018-02-07 23:24:28 -08001#!/bin/bash
2
3echo "=> Using custom build hook to add build arguments"
4echo "=> set DEBUG=true to see debug information"
5
6if [ "$DEBUG" == "true" ]; then
7 env | sort
8fi
9
10cd /src/${BUILD_CODE}${BUILD_PATH}
11
12if [ "$DEBUG" == "true" ]; then
13 echo docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH .
14fi
15
16docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH .