Skip to content

Commit

Permalink
Try using the github AzCLI action
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidalgo3 committed Apr 1, 2024
1 parent 4acb867 commit e15caeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions scripts/ciauthenticate
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit e15caeb

Please sign in to comment.