aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormuraliparthatechm <muraliparthasarathy.k@techmahindra.com>2024-12-16 16:56:32 +0100
committermuraliparthatechm <muraliparthasarathy.k@techmahindra.com>2024-12-16 17:04:51 +0100
commitbc208ae0a6b0c995f65c26564fb8b06ef270bf67 (patch)
treed8b99df9dc3465acfc4fd8b7ed387c5a98ad8f66
parent2d56e662750ca9caad629b349ed9c01782bcc5af (diff)
Roll back changes on docker login
Issue-ID: POLICY-5167 Change-Id: Ie1d8f1b7f75bf07ceefa0fe9ba2f4803c0bf99c9 Signed-off-by: muraliparthatechm <muraliparthasarathy.k@techmahindra.com>
-rw-r--r--Makefile2
-rwxr-xr-xbuild_image.sh3
-rw-r--r--version2
3 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c556faa..5521995 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ all: test build
build: install clean go_build test cover
-deploy: install clean build_image
+deploy: build_image
.PHONY: test
test:
diff --git a/build_image.sh b/build_image.sh
index 76e46a7..d823a02 100755
--- a/build_image.sh
+++ b/build_image.sh
@@ -31,14 +31,13 @@ GO_URL="https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz"
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
diff --git a/version b/version
index 90a27f9..3067557 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-1.0.5
+1.0.5-SNAPSHOT