mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
Add awscli (#610)
* uppdate/add awscli * change awscli to aws and fix for aws version * concatenate install and validate script files * update image templates * add aws to the path Co-authored-by: Dibir Magomedsaygitov <v-dimago@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
763f20b38c
commit
b8ac95cd81
@@ -445,6 +445,12 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Cmake.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Cmake.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "powershell",
|
||||||
|
"scripts":[
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-AWS.ps1"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"scripts":[
|
"scripts":[
|
||||||
|
|||||||
@@ -426,6 +426,12 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Cmake.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Cmake.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "powershell",
|
||||||
|
"scripts":[
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-AWS.ps1"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"scripts":[
|
"scripts":[
|
||||||
|
|||||||
31
images/win/scripts/Installers/Install-AWS.ps1
Normal file
31
images/win/scripts/Installers/Install-AWS.ps1
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
################################################################################
|
||||||
|
## File: Install-awscli.ps1
|
||||||
|
## Desc: Install awscli
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
choco install awscli -y
|
||||||
|
|
||||||
|
$env:PATH =$env:PATH + ";$Env:Programfiles\Amazon\AWSCLIV2"
|
||||||
|
|
||||||
|
$command = Get-Command -Name 'aws'
|
||||||
|
|
||||||
|
if ($command)
|
||||||
|
{
|
||||||
|
Write-Host "awscli on path"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Write-Host 'awscli is not on path'
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Adding description of the software to Markdown
|
||||||
|
$SoftwareName = "AWS CLI"
|
||||||
|
|
||||||
|
$version = (aws --version).Split(" ")[0].Replace("/"," ")
|
||||||
|
|
||||||
|
$Description = @"
|
||||||
|
_Version:_ $version<br/>
|
||||||
|
"@
|
||||||
|
|
||||||
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||||
Reference in New Issue
Block a user