Procházet zdrojové kódy

Merge pull request #39117 from seemethere/allow_version_overwrite

Add ability to override the version in make.ps1
Sebastiaan van Stijn před 6 roky
rodič
revize
8202330984
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      hack/make.ps1

+ 2 - 0
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.