mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
[Ubuntu] rollback azure-cli hardcode and install the latest version (#982)
* rollback azure-cli hardcode * remove os.sh helper
This commit is contained in:
@@ -6,16 +6,9 @@
|
|||||||
|
|
||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/document.sh
|
source $HELPER_SCRIPTS/document.sh
|
||||||
source $HELPER_SCRIPTS/os.sh
|
|
||||||
|
|
||||||
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
|
# 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
|
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
|
||||||
# Temporary downgrade to 2.5.1 installation until version 2.7.0 with the fix for the issue is not released https://github.com/actions/virtual-environments/issues/948
|
|
||||||
# There is no 2.5.1 version for Ubuntu20
|
|
||||||
if isUbuntu16 || isUbuntu18 ; then
|
|
||||||
label=$(getOSVersionLabel)
|
|
||||||
apt-get install -y --allow-downgrades azure-cli=2.5.1-1~$label
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||||
|
|||||||
Reference in New Issue
Block a user