Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing downgrade az cli to 2.63 #9

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/actions/login-to-azure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,6 @@ description: Login and Refresh Token
runs:
using: composite
steps:
- name: Move azcli to v2.63
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 install azure-cli=2.63.0-1~${AZ_DIST} -y --allow-downgrades

# The OIDC token expires every 5 minutes. Any login attempted post that will fail with
# "ERROR: AADSTS700024: Client assertion is not within its valid time range."
# To keep the OIDC token active, keep logging in every 4 minutes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function Deploy-PostgreSQL {
--secure-environment-variables POSTGRES_PASSWORD=$password `
--ports 5432 `
--dns-name-label cl-testdb-$uniqueString `
--os-type Linux `
--cpu 1 `
--memory 1 `
--registry-username "anonymous" `
--registry-password "*"

Expand Down