From dee91f96b7f5c01671dac41658ea6ec791a23863 Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Fri, 12 Jul 2024 11:14:33 +0200 Subject: [PATCH] Makefile: improve VERSION https://github.com/cilium/tetragon/commit/8dd832b943f2d6a1ad7d594b25e80d1d698c15df excluded the api/* pattern from the version. We want to introduce a new tag for the rthooks images, where by tagging the with rthooks/v0.1, rthooks images will be generated with this tag. Updat the VERSION detection by excluding everything that includes `/`. Signed-off-by: Kornilios Kourtis --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b167d64b7f4..68024c99cb0 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ SUDO ?= sudo GO_TEST_TIMEOUT ?= 20m E2E_TEST_TIMEOUT ?= 20m BUILD_PKG_DIR ?= $(shell pwd)/build/$(TARGET_ARCH) -VERSION ?= $(shell git describe --tags --always --exclude 'api/*') +VERSION ?= $(shell git describe --tags --always --exclude '*/*') # Do a parallel build with multiple jobs, based on the number of CPUs online # in this system: 'make -j8' on a 8-CPU system, etc.