ci: azure: Workaround azure cli installation script

This is done in order to work around
https://github.com/Azure/azure-cli/issues/28984, following a suggestion
on the very same issue.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2024-05-17 20:28:24 +02:00
parent a92defdffe
commit 5ff53e4d1c
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -62,7 +62,14 @@ function enable_cluster_http_application_routing() {
}
function install_azure_cli() {
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# This is a workaround for https://github.com/Azure/azure-cli/issues/28984
# which ended up breaking our CI.
curl -sL https://aka.ms/InstallAzureCLIDeb -o installAzureCli.sh
sed -i '/curl -sLS https:\/\/packages.microsoft.com\/keys\/microsoft.asc |/d' installAzureCli.sh
sed -i '/gpg --dearmor -o \/etc\/apt\/keyrings\/microsoft.gpg/d' installAzureCli.sh
sed -i '/chmod go+r \/etc\/apt\/keyrings\/microsoft.gpg/d' installAzureCli.sh
sudo bash installAzureCli.sh
# The aks-preview extension is required while the Mariner Kata host is in preview.
az extension add --name aks-preview
}