File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ ARG CONFIG=config
8
8
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9
9
ARG AZURE=/root/.Azure
10
10
ARG VCS_REF="none"
11
+ ARG Build_Date=
11
12
ARG VERSION=
12
13
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-centos-7
13
14
14
15
LABEL maintainer="Azure PowerShell Team <
[email protected] >" \
15
16
readme.md="http://aka.ms/azpsdockerreadme" \
16
17
description="This Dockerfile will install the latest release of Azure PowerShell." \
18
+ org.label-schema.build-date=${Build_Date} \
17
19
org.label-schema.usage="http://aka.ms/azpsdocker" \
18
20
org.label-schema.url="http://aka.ms/azpsdockerreadme" \
19
21
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ ARG CONFIG=config
8
8
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9
9
ARG AZURE=/root/.Azure
10
10
ARG VCS_REF="none"
11
+ ARG Build_Date=
11
12
ARG VERSION=
12
13
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-debian-9
13
14
14
15
LABEL maintainer="Azure PowerShell Team <
[email protected] >" \
15
16
readme.md="http://aka.ms/azpsdockerreadme" \
16
17
description="This Dockerfile will install the latest release of Azure PowerShell." \
18
+ org.label-schema.build-date=${Build_Date} \
17
19
org.label-schema.usage="http://aka.ms/azpsdocker" \
18
20
org.label-schema.url="http://aka.ms/azpsdockerreadme" \
19
21
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ ARG CONFIG=config
8
8
ARG AZURERM_CONTEXT_SETTINGS=AzureRmContextSettings.json
9
9
ARG AZURE=/root/.Azure
10
10
ARG VCS_REF="none"
11
+ ARG Build_Date=
11
12
ARG VERSION=
12
13
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-ubuntu-18.04
13
14
14
15
LABEL maintainer="Azure PowerShell Team <
[email protected] >" \
15
16
readme.md="http://aka.ms/azpsdockerreadme" \
16
17
description="This Dockerfile will install the latest release of Azure PowerShell." \
18
+ org.label-schema.build-date=${Build_Date} \
17
19
org.label-schema.usage="http://aka.ms/azpsdocker" \
18
20
org.label-schema.url="http://aka.ms/azpsdockerreadme" \
19
21
org.label-schema.vcs-url="https://github.com/Azure/azure-powershell" \
Original file line number Diff line number Diff line change 25
25
foreach ($dockerfile in (Get-ChildItem - Path $DOCKER - Filter " Dockerfile-*" ).FullName) {
26
26
$os = $dockerfile.split (" Dockerfile-" )[1 ]
27
27
Write-Output $os
28
- docker build -- build-arg VERSION= $version - t $DockerImageName ' :' $version " -" $os -f $dockerfile $DOCKER
28
+ docker build -- build-arg VERSION= $version -- build-arg BUILD_DATE= " date -u +'%Y-%m-%dT%H:%M:%SZ'" \
29
+ - t $DockerImageName ' :' $version " -" $os -f $dockerfile $DOCKER
29
30
}
30
31
} catch {
31
32
$Errors = $_
32
- Write-Error ($_ | Out-String )
33
+ Write-Error ($Errors | Out-String )
33
34
}
You can’t perform that action at this time.
0 commit comments