Issue-ID: POLICY-5167
Change-Id: Ie1d8f1b7f75bf07ceefa0fe9ba2f4803c0bf99c9
Signed-off-by: muraliparthatechm <muraliparthasarathy.k@techmahindra.com>
build: install clean go_build test cover
-deploy: install clean build_image
+deploy: build_image
.PHONY: test
test:
if [ -f "$VERSION_FILE" ]; then
VERSION=`cat version|xargs echo`;
else
- VERSION=1.0.0;
+ VERSION=1.0.0-SNAPSHOT;
fi
function _build_docker_and_push_image {
local tag_name=${IMAGE_NAME}:${VERSION}
- docker login -u docker -p docker nexus3.onap.org:10003
docker build -f Dockerfile -t policy-opa-pdp:${VERSION} .
echo "Start push {$tag_name}"
docker tag policy-opa-pdp:${VERSION} ${IMAGE_NAME}:latest