From edc639e99f21d0dd814581858d02787c23ba1599 Mon Sep 17 00:00:00 2001 From: corbin-coleman Date: Mon, 27 Aug 2018 18:34:19 +0000 Subject: [PATCH] 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 Signed-off-by: Eli Uriegas --- hack/make.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/make.ps1 b/hack/make.ps1 index 6239c958fd..2211f07eca 100644 --- a/hack/make.ps1 +++ b/hack/make.ps1 @@ -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.