blob: 2fee217547194879fea1fea52f7a71e6d379ee41 [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
Jonathan Hartb5046b02018-03-20 10:09:46 -07006TAG=${DOCKER_TAG:-latest}
7
David K. Bainbridge14d58402018-02-07 23:24:28 -08008if [ "$DEBUG" == "true" ]; then
9 env | sort
10fi
11
12cd /src/${BUILD_CODE}${BUILD_PATH}
13
14if [ "$DEBUG" == "true" ]; then
15 echo docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH .
16fi
17
18docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH .