diff --git a/integration/localnet/Makefile b/integration/localnet/Makefile index 30af385fae3..a2a035f4a93 100644 --- a/integration/localnet/Makefile +++ b/integration/localnet/Makefile @@ -22,7 +22,11 @@ LOGLEVEL=DEBUG # The Git commit hash COMMIT=$(shell git rev-parse HEAD) -VERSION=localnetbuild + +# The version to include in container builds. Must be semver compliant +ifeq ($(VERSION),) + VERSION := $(shell git describe --tags --abbrev=2 --match "v*" 2>/dev/null)-localnetbuild +endif CURRENT_DIRECTORY=$(shell pwd)