blob: 2fee217547194879fea1fea52f7a71e6d379ee41 [file] [log] [blame]
#!/bin/bash
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
env | sort
fi
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 .
fi
docker build --build-arg REPOSITORY=$REPOSITORY --build-arg REGISTRY=$REGISTRY --build-arg TAG=${TAG:-latest} -t $IMAGE_NAME -f $DOCKERFILE_PATH .