mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
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:
parent
96d87416f6
commit
d85a6ab93c
2
Makefile
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user