Skip to content

Commit

Permalink
federated(credential): add for each environment
Browse files Browse the repository at this point in the history
  • Loading branch information
autocloudarc committed Jan 10, 2024
1 parent eb5775c commit 6933a1e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy-az-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,24 @@ jobs:
az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
az deployment sub what-if --location ${{ env.location }} --template-file ${{ env.templateFile }} --parameters ${{ env.templateParamFile }} --verbose
# https://docs.microsoft.com/en-us/cli/azure/deployment/sub?view=azure-cli-latest#az_deployment_sub_what_if
# az deployment sub what-if --location WestUS --template-file ./exercises-dev/main-exercises-dev.bicep --parameters ./exercises-dev/main-exercises-dev.parameters.json
# az deployment sub what-if --location WestUS --template-file ./exercises-dev/main-exercises-dev.bicep --parameters ./exercises-dev/main-exercises-dev.parameters.json
deliver:
needs: stage
runs-on: ubuntu-latest
environment: prd
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v3

# Authenticate to Azure tenant using the Azure login action (OIDC)
- name: Authenticate to Azure with OIDC
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: false

# https://github.com/Azure/login
- name: deploy
Expand Down

0 comments on commit 6933a1e

Please sign in to comment.