From e15caebee9aa14873be5f300e0d93438dc66c32b Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Mon, 1 Apr 2024 18:55:06 -0400 Subject: [PATCH] Try using the github AzCLI action --- .github/workflows/cicd.yml | 5 +++++ scripts/ciauthenticate | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 02d8039f..3302e815 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -13,6 +13,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Log in with Azure + uses: azure/login@v1 + with: + creds: '${{ secrets.AZURE_CREDENTIALS }}' + - name: Authenticate env: CLIENT_ID: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientId }} diff --git a/scripts/ciauthenticate b/scripts/ciauthenticate index ec97d28d..bff04b3b 100755 --- a/scripts/ciauthenticate +++ b/scripts/ciauthenticate @@ -13,7 +13,7 @@ CI authentication for this project. " } -curl -sL https://aka.ms/InstallAzureCLIDeb | bash -az login --service-principal --username ${CLIENT_ID} --tenant "microsoft.onmicrosoft.com" --password ${CLIENT_SECRET} +# curl -sL https://aka.ms/InstallAzureCLIDeb | bash +# az login --service-principal --username ${CLIENT_ID} --tenant "microsoft.onmicrosoft.com" --password ${CLIENT_SECRET} az acr login --name pcccr docker login pcccr.azurecr.io --username ${CLIENT_ID} --password ${CLIENT_SECRET} \ No newline at end of file