File tree 1 file changed +0
-32
lines changed
actions/prepare_azure_metadata
1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 20
20
using : " composite"
21
21
22
22
steps :
23
- - name : uninstall azure-cli
24
- shell : bash
25
- run : |
26
- sudo apt-get remove -y azure-cli
27
-
28
- - name : install azure-cli 2.61.0
29
- shell : bash
30
- run : |
31
- sudo apt-get update
32
- sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
33
- sudo mkdir -p /etc/apt/keyrings
34
- curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
35
- gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
36
- sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
37
- AZ_DIST=$(lsb_release -cs)
38
- echo "Types: deb
39
- URIs: https://packages.microsoft.com/repos/azure-cli/
40
- Suites: ${AZ_DIST}
41
- Components: main
42
- Architectures: $(dpkg --print-architecture)
43
- Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
44
- sudo apt-get update
45
- sudo apt-get install azure-cli
46
-
47
- apt-cache policy azure-cli
48
- # Obtain the currently installed distribution
49
- AZ_DIST=$(lsb_release -cs)
50
- # Store an Azure CLI version of choice
51
- AZ_VER=2.61.0
52
- # Install a specific version
53
- sudo apt-get install azure-cli=${AZ_VER}-1~${AZ_DIST} --allow-downgrades
54
-
55
23
- name : check azure-cli version
56
24
shell : bash
57
25
run : |
You can’t perform that action at this time.
0 commit comments