From 0f883c5c137c3077bfea93742935a1d21b17cbbc Mon Sep 17 00:00:00 2001 From: SrishT Date: Mon, 19 Jul 2021 14:02:03 +0530 Subject: [PATCH] Issue 566: Including operator base version in Makefile Signed-off-by: SrishT --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8a818127c..e91734348 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,10 @@ SHELL=/bin/bash -o pipefail PROJECT_NAME=pravega-operator REPO=testpravegaop/$(PROJECT_NAME) -VERSION=$(shell git describe --always --tags --dirty | sed "s/\(.*\)-g`git rev-parse --short HEAD`/\1/") +BASE_VERSION=0.5.5 +ID=$(shell git rev-list HEAD --count) GIT_SHA=$(shell git rev-parse --short HEAD) +VERSION=$(BASE_VERSION)-$(ID)-$(GIT_SHA) TEST_IMAGE=$(REPO)-testimages:$(VERSION) GOOS=linux GOARCH=amd64