mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
Allows VERSION to be overwritten by env variable
VERSION was hardcoded to be used as the `VERSION` file from the root directory, this makes it so that you have the option to overwrite this. Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
This commit is contained in:
@@ -67,7 +67,7 @@ DEFAULT_BUNDLES=(
|
||||
tgz
|
||||
)
|
||||
|
||||
VERSION=$(< ./VERSION)
|
||||
VERSION=${VERSION:-$(< ./VERSION)}
|
||||
! BUILDTIME=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
|
||||
if [ "$DOCKER_GITCOMMIT" ]; then
|
||||
GITCOMMIT="$DOCKER_GITCOMMIT"
|
||||
|
||||
Reference in New Issue
Block a user