Skip to content

Commit

Permalink
semver:minor] CircleCI-Public#18 Update to use trusted.gpg.d
Browse files Browse the repository at this point in the history
Instead of apt-key
  • Loading branch information
karlparry committed Jul 22, 2022
1 parent c323d4b commit ecd59c3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,34 @@ steps:
# Modify your sources list
echo "Add Azure CLI software repository"
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
$SUDO tee /etc/apt/sources.list.d/azure-cli.list
if [[ $(command -v curl) == "" ]]; then
echo "Installing curl"
$SUDO apt-get -qqy install curl
fi
if [[ $(command -v gpg) == "" ]]; then
echo "Installing gpg"
$SUDO apt-get -qqy install gnupg
fi
# Get the Microsoft signing key
curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -
echo "Install Microsoft signing key"
curl -sL https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor | \
$SUDO tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
# Update and install the Azure CLI
# https://github.com/CircleCI-Public/azure-cli-orb/issues/15
# https://manpages.debian.org/unstable/apt/apt-get.8.en.html
echo "Run apt-get update"
$SUDO apt-get --allow-releaseinfo-change-suite update
echo "Run apt-get install"
$SUDO apt-get -qqy install \
ca-certificates \
azure-cli
Expand Down

0 comments on commit ecd59c3

Please sign in to comment.