Skip to content

Commit

Permalink
Try to update Azure install script for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-traverse committed Apr 27, 2024
1 parent c74fb35 commit 793d7f8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/scripts/int-storage-azure-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get upgrade -y
apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg
apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg

mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor |
tee /etc/apt/keyrings/microsoft.gpg > /dev/null
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg
chmod go+r /etc/apt/keyrings/microsoft.gpg

AZ_REPO=$(lsb_release -cs)
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
tee /etc/apt/sources.list.d/azure-cli.list
AZ_DIST=$(lsb_release -cs)
echo "Types: deb
URIs: https://packages.microsoft.com/repos/azure-cli/
Suites: ${AZ_DIST}
Components: main
Architectures: $(dpkg --print-architecture)
Signed-by: /etc/apt/keyrings/microsoft.gpg" | tee /etc/apt/sources.list.d/azure-cli.sources

apt-get update
apt-get install azure-cli

0 comments on commit 793d7f8

Please sign in to comment.