#!/bin/bash

set -e

DOCKER_IMAGE=${DOCKER_IMAGE:-bosh/openstack-cpi-release}

docker login

echo "Building docker image..."
docker build -t $DOCKER_IMAGE .

echo "Pushing docker image to '$DOCKER_IMAGE'..."
docker push $DOCKER_IMAGE

Add build script for pushing docker image
Add build script for pushing docker image

[#99096812](https://www.pivotaltracker.com/story/show/99096812)

Signed-off-by: Rexxar Liang (Biao Liang) <840bfc9a5cbdfa07f55e9f6fe0355ea31699536d@huawei.com>
