| echo "=> Using custom build hook to add build arguments" |
| echo "=> set DEBUG=true to see debug information" |
| TAG=${DOCKER_TAG:-latest} |
| if [ "$DEBUG" == "true" ]; then |
| cd /src/${BUILD_CODE}${BUILD_PATH} |
| if [ "$DEBUG" == "true" ]; then |
| echo docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH . |
| docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH . |