mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[ubuntu] Remove apt sources used to install azure-cli only (#3274)
This commit is contained in:
@@ -184,7 +184,8 @@ function Get-JqVersion {
|
||||
|
||||
function Get-AzureCliVersion {
|
||||
$azcliVersion = az -v | Select-String "azure-cli" | Take-OutputPart -Part -1
|
||||
return "Azure CLI (azure-cli) $azcliVersion"
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "azure-cli"
|
||||
return "Azure CLI (azure-cli) $azcliVersion (installation method: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-AzureDevopsVersion {
|
||||
|
||||
@@ -6,5 +6,8 @@
|
||||
|
||||
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
|
||||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
||||
echo "azure-cli https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||
rm -f /etc/apt/sources.list.d/azure-cli.list
|
||||
rm -f /etc/apt/sources.list.d/azure-cli.list.save
|
||||
|
||||
invoke_tests "CLI.Tools" "Azure CLI"
|
||||
invoke_tests "CLI.Tools" "Azure CLI"
|
||||
|
||||
Reference in New Issue
Block a user