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> (cherry picked from commit edc639e99f21d0dd814581858d02787c23ba1599) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 238951ac3a78a8517d7764de0f48b8ded28441e2 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
89a08e8974
commit
8a99913336
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user