Skip to content

Commit

Permalink
Added Azure login to functions-deploy.
Browse files Browse the repository at this point in the history
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: Sylvie <[email protected]>
Co-authored-by: James Herr <[email protected]>
  • Loading branch information
4 people committed Jul 10, 2024
1 parent a8d0dfd commit 653437d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/functions-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@ env:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.ENVIRONMENT }}
environment:
name: ${{ inputs.ENVIRONMENT }}
permissions:
id-token: write
contents: read

steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node ${{ env.NODE_VERSION }} Environment
uses: actions/setup-node@v3
Expand All @@ -72,6 +77,13 @@ jobs:
npm run test --if-present
popd
- name: Login via Azure CLI
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
Expand Down

0 comments on commit 653437d

Please sign in to comment.