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.
This commit is contained in:
Ryan Zoeller 2020-10-20 18:18:43 -05:00
parent 96d87416f6
commit d85a6ab93c

View File

@ -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)