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