From d85a6ab93cb5e0fef1af4a50f638634612394b4a Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Tue, 20 Oct 2020 18:18:43 -0500 Subject: [PATCH] Eagerly evaluate TAG, to ensure it's consistent By deferring the evaluation of TAG, we risk the date changing mid-build leading to images from the same make invocation having different tags. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 360697a..427dbcd 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ ifeq ("$(CIRCLECI)", "true") endif # Tag images with date and Git short hash in addition to revision -TAG = $(shell date '+%Y%m%d')-$(shell git rev-parse --short HEAD) +TAG := $(shell date '+%Y%m%d')-$(shell git rev-parse --short HEAD) # # images: This target builds all IMAGES (because it is the first one, it is built by default)