From d274487135eea79ede032aadff505a19454de559 Mon Sep 17 00:00:00 2001 From: bfjelds Date: Thu, 4 Feb 2021 09:32:03 -0800 Subject: [PATCH] Improve development experience with timestamped container labels Using labels based on version.txt can make it difficult to iterate during development. Creating timestamped labels for the local build experience should make it easier to differentiate between development builds. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1598f5afc..07b537e23 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,8 @@ DOCKERFILE_DIR ?= build/containers PREFIX ?= $(REGISTRY)/$(UNIQUE_ID) VERSION=$(shell cat version.txt) -VERSION_LABEL=v$(VERSION) +TIMESTAMP=$(shell date +"%Y%m%d_%H%M%S") +VERSION_LABEL=v$(VERSION)-$(TIMESTAMP) LABEL_PREFIX ?= $(VERSION_LABEL) CACHE_OPTION ?= @@ -29,4 +30,4 @@ ARM64V8_TARGET = aarch64-unknown-linux-gnu include build/intermediate-containers.mk # Akri container defines -include build/akri-containers.mk \ No newline at end of file +include build/akri-containers.mk