Add ability to override the version in make.ps1

Checks for environment variable VERSION if it exists then it sets dockerVersion to VERSION

Signed-off-by: corbin-coleman <corbin.coleman@docker.com>
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
This commit is contained in:
corbin-coleman 2018-08-27 18:34:19 +00:00 committed by Eli Uriegas
parent 94e228b227
commit edc639e99f

View file

@ -351,6 +351,8 @@ Try {
# Get the version of docker (eg 17.04.0-dev)
$dockerVersion="0.0.0-dev"
# Overwrite dockerVersion if VERSION Environment variable is available
if (Test-Path Env:\VERSION) { $dockerVersion=$env:VERSION }
# Give a warning if we are not running in a container and are building binaries or running unit tests.
# Not relevant for validation tests as these are fine to run outside of a container.