mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Windows] Add azcopy utility (#1008)
* azcopy10 deployment for Windows has been added * small bugfixing * Header has been added to Install-AzCopy.ps1 * Header has been added to Validate-AzCopy.ps1 * Packer tempaltes have been modified
This commit is contained in:
@@ -289,6 +289,12 @@
|
||||
"{{ template_dir }}/scripts/Installers/Install-AzureDevOpsCli.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-AzCopy.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
@@ -712,6 +718,12 @@
|
||||
"{{ template_dir }}/scripts/Installers/Validate-AzureDevOpsCli.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Validate-AzCopy.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
|
||||
@@ -274,6 +274,12 @@
|
||||
"{{ template_dir }}/scripts/Installers/Install-AzureDevOpsCli.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-AzCopy.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
@@ -697,6 +703,12 @@
|
||||
"{{ template_dir }}/scripts/Installers/Validate-AzureDevOpsCli.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Validate-AzCopy.ps1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"scripts":[
|
||||
|
||||
6
images/win/scripts/Installers/Install-AzCopy.ps1
Normal file
6
images/win/scripts/Installers/Install-AzCopy.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
## File: Install-AzCopy.ps1
|
||||
## Desc: Install AzCopy10
|
||||
################################################################################
|
||||
|
||||
Choco-Install -PackageName azcopy10
|
||||
10
images/win/scripts/Installers/Validate-AzCopy.ps1
Normal file
10
images/win/scripts/Installers/Validate-AzCopy.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
################################################################################
|
||||
## File: Validate-AzCopy.ps1
|
||||
## Desc: Validate AzCopy10
|
||||
################################################################################
|
||||
if (Get-Command -Name 'azcopy') {
|
||||
Write-Host "$(azcopy --version) on path"
|
||||
} else {
|
||||
Write-Error "azcopy not on path"
|
||||
exit 1
|
||||
}
|
||||
@@ -93,6 +93,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
$markdown += New-MDHeader "CLI Tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-AzureCLIVersion),
|
||||
(Get-AzCopyVersion),
|
||||
(Get-AzureDevopsExtVersion),
|
||||
(Get-AWSCLIVersion),
|
||||
(Get-AWSSAMVersion),
|
||||
|
||||
@@ -141,6 +141,10 @@ function Get-AzureCLIVersion {
|
||||
return "Azure CLI $azureCLIVersion"
|
||||
}
|
||||
|
||||
function Get-AzCopyVersion {
|
||||
return ($(azcopy --version) -replace "version ")
|
||||
}
|
||||
|
||||
function Get-AzureDevopsExtVersion {
|
||||
$azureDevExtVersion = (az version | ConvertFrom-Json | Foreach{ $_."extensions" })."azure-devops"
|
||||
return "Azure DevOps CLI extension $azureDevExtVersion"
|
||||
|
||||
Reference in New Issue
Block a user