[build]: Add missing timestamp and build_number in docker meta label tag value (#2194)

* Add missing timestamp in docker meta label tag value

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>

* add BUILD_NUMBER as well

Signed-off-by: Guohan Lu <gulv@microsoft.com>
This commit is contained in:
Jipan Yang 2018-10-29 12:06:57 -07:00 committed by lguohan
parent 2df1774afe
commit c64f105a3e

View File

@ -9,7 +9,7 @@ SHELL = /bin/bash
USER = $(shell id -un) USER = $(shell id -un)
UID = $(shell id -u) UID = $(shell id -u)
GUID = $(shell id -g) GUID = $(shell id -g)
SONIC_GET_VERSION=$(shell . functions.sh && sonic_get_version) SONIC_GET_VERSION=$(shell export BUILD_TIMESTAMP=$(BUILD_TIMESTAMP) && export BUILD_NUMBER=$(BUILD_NUMBER) && . functions.sh && sonic_get_version)
.SECONDEXPANSION: .SECONDEXPANSION: