diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 4cb64d9..46c7739 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -47,15 +47,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Az CLI login - uses: azure/login@v2 - with: - client-id: ${{ secrets.CALQUE_PRD_CLIENT_ID }} - tenant-id: ${{ secrets.CALQUE_PRD_TENANT_ID }} - subscription-id: ${{ secrets.CALQUE_PRD_SUBSCRIPTION_ID }} - - name: Test bicep - run: az bicep build --file ./infrastructure/main.bicep --stdout + uses: Azure/cli@v2 + with: + inlineScript: | + az bicep build --file ./infrastructure/main.bicep --stdout - name: Build container images run: | @@ -97,7 +93,6 @@ jobs: - name: Deploy bicep uses: Azure/cli@v2 with: - azcliversion: 2.66.0 inlineScript: | az deployment sub create \ --location westeurope \ diff --git a/infrastructure/bicepconfig.json b/infrastructure/bicepconfig.json index dc847c0..9812ce7 100644 --- a/infrastructure/bicepconfig.json +++ b/infrastructure/bicepconfig.json @@ -8,5 +8,11 @@ "registry": "acreuwprdtricep.azurecr.io" } } + }, + "cloud": { + "currentProfile": "AzureCloud", + "credentialPrecedence": [ + "AzureCLI" + ] } } \ No newline at end of file