Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aff7e8b

Browse files
committedFeb 12, 2020
get Az version for docker from tools\Az\Az.psd1
1 parent e9fb090 commit aff7e8b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎docker/config/release.props

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎tools/Docker/BuildImages.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ param(
1919
[string]$DockerImageName
2020
)
2121

22-
$version = (Get-Content "$DOCKER/config/release.props" | Select-String "az.version").ToString().Split("=")[1]
22+
Import-LocalizedData -BaseDirectory $PSScriptRoot"\..\Az" -FileName "Az.psd1" -BindingVariable AzMetaData
23+
$version = $AzMetaData.ModuleVersion
24+
Write-Output "Az version: "$version", from Az.psd1"
2325

2426
try {
2527
foreach ($dockerfile in (Get-ChildItem -Path $DOCKER -Filter "Dockerfile-*").FullName) {

0 commit comments

Comments
 (0)
Please sign in to comment.