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