#!/bin/bash

BRANCH=$1
VERSION=$2

echo "${VERSION}" > VERSION
docker build \
        --build-arg VERSION=$VERSION \
        --build-arg BRANCH=$BRANCH \
	-t registry.hiperpbx.com/web-console:$VERSION \
	.

docker push registry.hiperpbx.com/web-console:$VERSION
