Skip to content

Commit

Permalink
feat: adding azure-dev for azd pipeline config testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldotyu committed May 7, 2024
1 parent 9fd3779 commit 62b6826
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/azure-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
env:
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install azd
uses: Azure/setup-azd@v1.0.0

- name: Install Nodejs
uses: actions/setup-node@v4
with:
node-version: 18

- name: Log in with Azure (Federated Credentials)
run: |
azd auth login \
--client-id ${{ env.AZURE_CLIENT_ID }} \
--federated-credential-provider "github" \
--tenant-id ${{ env.AZURE_TENANT_ID}}
- name: Provision Infrastructure and Deploy Application
run: azd up --no-prompt
env:
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}

0 comments on commit 62b6826

Please sign in to comment.