Skip to content

Commit

Permalink
UID2-3857 downgrade azure cli (#115)
Browse files Browse the repository at this point in the history
* Downgrade azure-cli to 2.61.0

* Use kcc-UID2-3857-downgrade-azure-cli

* Add `shell: bash`

* Revert custom branch to v2
  • Loading branch information
cYKatherine authored Jul 31, 2024
1 parent b40c322 commit 00695dd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions actions/prepare_azure_metadata/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,43 @@ runs:
using: "composite"

steps:
- name: uninstall azure-cli
shell: bash
run: |
sudo apt-get remove -y azure-cli
- name: install azure-cli 2.61.0
shell: bash
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
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" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
sudo apt-get update
sudo apt-get install azure-cli
apt-cache policy azure-cli
# Obtain the currently installed distribution
AZ_DIST=$(lsb_release -cs)
# Store an Azure CLI version of choice
AZ_VER=2.61.0
# Install a specific version
sudo apt-get install azure-cli=${AZ_VER}-1~${AZ_DIST} --allow-downgrades
- name: check azure-cli version
shell: bash
run: |
az --version
- name: Generate Azure enclave deployment artifacts
id: enclave_artifacts
shell: bash
Expand Down

0 comments on commit 00695dd

Please sign in to comment.